feat: add Sequence.all method and forall documentation with tests

Implement `all(f)` method on Sequence class that returns true if all elements pass the predicate function. Add corresponding documentation entry for `forall(predicate)` in core-library.markdown. Include three test files covering basic functionality, non-boolean return handling, and non-function argument error cases.
This commit is contained in:
Bob Nystrom
2015-01-15 14:52:43 +00:00
6 changed files with 29 additions and 0 deletions
+4
View File
@@ -313,6 +313,10 @@ Removes all items from the list.
The number of items in the list.
### **forall(predicate)**
Tests whether all the elements in the list pass the `predicate`.
### **insert**(item, index)
**TODO**