lambda lifting support for iterToProc plugin
This commit is contained in:
parent
d7433d02bc
commit
217e0ab6e9
5 changed files with 88 additions and 18 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue