Select performs a filter and a mapper inside of a reduce, only iterating the list one time.
select([1, 2, 3, 4], x => x*x, x > 2) == [9, 16] Copy
select([1, 2, 3, 4], x => x*x, x > 2) == [9, 16]
Select performs a filter and a mapper inside of a reduce, only iterating the list one time.