Hi.
Congrats for this superb language. I find it quite enjoyable.
Now for the question. I've been searching for lambda functions, and that's the best I found
var list = @[1,2,3,4,5,6,7,8,9]
proc process(s: seq[int], f: proc(a:int):int) =
for i in s:
echo(f(i))
process(list, proc(a:int):int = a*a)
Is there some way Nimrod compiler infers types for this (or better, an abbreviated syntax "a la" clojure's style)?
process(list, a:: a*a)