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
@@ -52,6 +52,8 @@ class Sequence {
}
}
isEmpty { iterate(null) ? false : true }
map(transformation) { new MapSequence(this, transformation) }
where(predicate) { new WhereSequence(this, predicate) }