lambda
lambda copied to clipboard
Generators / iterators?
Design generator / iterator pattern for Lambda and implement whatever is necessary.
The goal is to provide an object with list-like interface (e.g. map
, reduce
, filter
, etc.) with each method implemented online instead of working on an array.
We can call these "lazy lists".