Bob Nystrom
d335116799
feat: add List.where method for filtering elements with a predicate function
...
Implement a `where` method on the List class that takes a function `f` and returns a new list containing only elements for which `f.call(element)` returns true. The implementation is added both in the builtin core.wren source and embedded in the C library source string in wren_core.c. Also includes a new test file `test/list/where.wren` verifying filtering with matching and non-matching predicates.
2014-02-15 19:21:24 +00:00
..
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2013-12-20 20:42:11 +00:00
2013-12-20 20:42:11 +00:00
2014-02-10 15:55:14 +00:00
2014-01-02 15:32:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-05 20:27:12 +00:00
2014-01-02 15:32:00 +00:00
2014-01-02 15:32:00 +00:00
2014-02-15 01:24:06 +00:00
2014-01-02 15:32:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-02 15:32:00 +00:00
2014-01-05 20:27:12 +00:00
2014-02-15 06:34:30 +00:00
2014-01-05 20:27:12 +00:00
2014-02-15 01:24:06 +00:00
2014-01-03 18:47:26 +00:00
2014-01-03 18:47:26 +00:00
2014-01-03 18:47:26 +00:00
2014-01-03 18:47:26 +00:00
2014-01-05 20:27:12 +00:00
2014-01-03 18:47:26 +00:00
2014-01-30 17:12:44 +00:00
2014-01-30 17:12:44 +00:00
2014-01-30 17:12:44 +00:00
2014-01-30 17:12:44 +00:00
2014-01-30 17:12:44 +00:00
2014-01-30 17:12:44 +00:00
2014-01-30 17:12:44 +00:00
2014-01-30 17:12:44 +00:00
2014-02-15 04:10:41 +00:00
2014-01-03 18:47:26 +00:00
2014-01-03 18:47:26 +00:00
2014-01-03 18:47:26 +00:00
2014-01-03 18:47:26 +00:00
2014-02-13 16:38:44 +00:00
2014-01-03 18:47:26 +00:00
2014-01-03 18:47:26 +00:00
2014-01-30 17:12:44 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-01-05 20:27:12 +00:00
2014-02-15 06:42:14 +00:00