Merge branch 'master' of git://github.com/bjorn/wren into bjorn-master

This commit is contained in:
Bob Nystrom
2015-03-03 07:23:47 -08:00
7 changed files with 42 additions and 4 deletions
+7
View File
@@ -68,6 +68,13 @@ static const char* libSource =
" return true\n"
" }\n"
"\n"
" any(f) {\n"
" for (element in this) {\n"
" if (f.call(element)) return true\n"
" }\n"
" return false\n"
" }\n"
"\n"
" reduce(acc, f) {\n"
" for (element in this) {\n"
" acc = f.call(acc, element)\n"