Created
January 1, 2015 23:45
-
-
Save def-/6b2723d799165ad0e429 to your computer and use it in GitHub Desktop.
list comprehensions with consts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let foo = (proc: seq[int] = | |
result = @[] | |
for a in 1..10: | |
for v in 1..10: | |
result.add(a+v) | |
)() | |
echo foo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment