Merge pull request #241 from bjorn/sequence_each

Added Sequence.each
This commit is contained in:
Bob Nystrom
2015-04-01 07:10:21 -07:00
8 changed files with 29 additions and 3 deletions
+6
View File
@@ -86,6 +86,12 @@ static const char* libSource =
" return result\n"
" }\n"
"\n"
" each(f) {\n"
" for (element in this) {\n"
" f.call(element)\n"
" }\n"
" }\n"
"\n"
" map(f) {\n"
" var result = new List\n"
" for (element in this) {\n"