Add isEmpty to Sequence.
Thanks, Michel and Thorbjørn!
This commit is contained in:
@@ -52,6 +52,8 @@ class Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
isEmpty { iterate(null) ? false : true }
|
||||
|
||||
map(transformation) { new MapSequence(this, transformation) }
|
||||
|
||||
where(predicate) { new WhereSequence(this, predicate) }
|
||||
|
||||
Reference in New Issue
Block a user