Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/lazy-iterator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LazyIterator
Combines multiple array operations into an iterator and only applies operations when the iterator is processed
Example
import LazyIterator from "@rbxts/lazy-iterator";
const sum = LazyIterator.fromArray([1,2,3,4,5,6,7,8])
.map(n => n * 3) // triple all numbers
.filter(n => n % 2 === 0) // filter out odd numbers
.reduce((sum, n) => sum + n); // apply all operations then add up all numbers
print(sum); // 60