Merge branch 'list-forall' of git://github.com/gsmaverick/wren into gsmaverick-list-forall
This commit is contained in:
@@ -57,6 +57,13 @@ static const char* libSource =
|
||||
" }\n"
|
||||
" return result\n"
|
||||
" }\n"
|
||||
"\n"
|
||||
" all(f) {\n"
|
||||
" for (element in this) {\n"
|
||||
" if (!f.call(element)) return false\n"
|
||||
" }\n"
|
||||
" return true\n"
|
||||
" }\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"class List is Sequence {\n"
|
||||
|
||||
Reference in New Issue
Block a user