diff options
Diffstat (limited to 'tests/generics/tmap_auto.nim')
-rw-r--r-- | tests/generics/tmap_auto.nim | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/generics/tmap_auto.nim b/tests/generics/tmap_auto.nim deleted file mode 100644 index 572556722..000000000 --- a/tests/generics/tmap_auto.nim +++ /dev/null @@ -1,13 +0,0 @@ -import future, sequtils - -let x = map(@[1, 2, 3], x => x+10) -assert x == @[11, 12, 13] - -let y = map(@[(1,"a"), (2,"b"), (3,"c")], x => $x[0] & x[1]) -assert y == @["1a", "2b", "3c"] - -proc eatsTwoArgProc[T,S,U](a: T, b: S, f: proc(t: T, s: S): U): U = - f(a,b) - -let z = eatsTwoArgProc(1, "a", (t,s) => $t & s) -assert z == "1a" |