Try this:
import std/sugar
proc each(list: seq[int], callback: proc(v: int): void) =
callback 0
@[1].each((v) => echo v)
Run
- Future of typing ? nimnam
- Future of typing ? Araq
- Future of typing ? jmgomez
- Future of typing ? nimnam
- Future of typing ? pietroppeter
- Future of typing ? alexeypetrushin
- Future of typing ? Araq
- Future of typing ? sls1005
- Future of typing ? alexeypetrushin
- Future of typing ? sls1005
- Future of typing ? alexeypetrushin
- Future of typing ? sls1005
- Future of typing ? jmgomez
- Future of typing ? ElegantBeef
- Future of typing ? alexeypetrushin
- Future of typing ? ElegantBeef
- Future of typing ? alexeypetrushin
- Future of typing ? sls1005
- Future of typing ? lancer
