lambda lifting support for iterToProc plugin

This commit is contained in:
Araq 2015-11-29 15:00:19 +01:00
commit 217e0ab6e9
5 changed files with 88 additions and 18 deletions

View file

@ -6,8 +6,11 @@ discard """
8
12
'''
disabled: "true"
"""
# Will eventually fix it...
iterator map[T, U](s: iterator:T{.inline.}, f: proc(x: T): U): U =
for e in s: yield f(e)