mdollar1.nim 98 B

123456
  1. type Foo* = object
  2. x*, y*: int
  3. proc `$`*(f: Foo): string =
  4. "Foo(" & $f.x & ", " & $f.y & ")"