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