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-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-15 15:59:42 +01:00
2015-03-19 21:10:05 +01:00
2015-03-19 21:10:05 +01:00
2015-03-19 21:10:05 +01:00
2015-03-14 12:45:56 -07:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00