Files
wren/doc/site
Thorbjørn Lindeijer 94804fe1a0 Added Sequence.count(predicate)
Returns the number of elements in the sequence that pass the
`predicate`.

It could also have been implemented as:

  count(f) { reduce(0) {|a, b| f.call(b) ? a + 1 : a } }

But I considered the simple version more readable.

Also documented Sequence.count.
2015-03-19 21:10:05 +01:00
..
2015-03-19 21:10:05 +01:00
2015-01-03 23:27:02 -08:00
2015-02-20 06:54:03 -08:00
2015-03-01 23:14:32 +01:00
2015-01-03 23:27:02 -08:00
2015-02-18 07:55:09 -08:00