Example:
Streamer([1, 2, 3, 4])
.map(x => x * 2)
.filter(x => x > 6)
.take(2);
Piece of ๐ฐ
Streamer.js is a lazy evaluation for iterable data types (Set, Array, LinkedList, Generators, etc.). It can also send HTTP requests and ask the data from remote endpoints. Streamer.js tries to implement most of Kotlin Lazy Sequence methods.
In programming language theory, lazy evaluation, or call-by-need is an evaluation strategy which delays the evaluation of an expression until its value is needed (non-strict evaluation).
Read more: https://en.wikipedia.org/wiki/Lazy_evaluation
Please open a ticket in GitHub issues.
Please create a branch for each patch and send a PR to GitHub. Make sure you write tests. There is a CI integarated with this repo.
GPLv3