Add isEmpty to Sequence.

Thanks, Michel and Thorbjørn!
This commit is contained in:
Bob Nystrom
2015-06-30 06:52:29 -07:00
parent ed6d7c5084
commit 4a15653c66
4 changed files with 21 additions and 0 deletions
+2
View File
@@ -66,6 +66,8 @@ static const char* coreLibSource =
" }\n"
" }\n"
"\n"
" isEmpty { iterate(null) ? false : true }\n"
"\n"
" map(transformation) { new MapSequence(this, transformation) }\n"
"\n"
" where(predicate) { new WhereSequence(this, predicate) }\n"