Advertisement
Guest User

futures.nim

a guest
Apr 10th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.30 KB | None | 0 0
  1. from future import `=>`
  2.  
  3. var arr = [1,2,3,4]
  4. arr.map (i => echo(i))
  5. #futures.nim(4, 3) Error: type mismatch: got (Array constructor[0..3, int])
  6. #but expected one of:
  7. #system.map(data: var openarray[T], op: proc (var T){.closure.})
  8. #system.map(data: openarray[T], op: proc (T): S{.closure.}): seq[S]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement