Functional Programming

Functional utility functions

map([iterable], [function(object) => object])  [map]

Returns a map object, which can be iterated over, and will apply its function lazily to each element of another iterable.

filter([iterable], [function(object) => object])  [filter]

Returns a filter object, which can be iterated over, and will yield only the elements in its iterator which satisfy the given predicate.