π iter
Iterators & Combinators
79 functions
690 lines
Functional
π Overview
Functional programming with iterators: map, filter, reduce, zip, chain, lazy evaluation.
π Quick Start
import iter
let numbers = [1, 2, 3, 4, 5]
let result = iter.from(numbers)
.filter(|x| x % 2 == 0)
.map(|x| x * 2)
.collect()
// [4, 8]