I have a function, and I'd like to make it look like a Seq. How can I do that?
The original funcion looks like:
theFunction(a:ptr VSMap, idx:int):string =
....
and I would like to be able to use it like this:
a[idx]
proc `[]`(a:ptr VSMap, idx:int):string =
discard "implementation here"