iter module
Maylang standard-library module.
import "iter" as iter;
Functions
enumerate
fun enumerate<T>(xs: List<T>) -> List<List<Any>>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
zip_with
fun zip_with<A, B, C>(a: List<A>, b: List<B>, f: (A, B) -> C) -> List<C>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
find_index
fun find_index<T>(xs: List<T>, pred: (T) -> Bool) -> IntNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
find_value
fun find_value<T>(xs: List<T>, pred: (T) -> Bool, fallback: T) -> TNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
take_while
fun take_while<T>(xs: List<T>, pred: (T) -> Bool) -> List<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
drop_while
fun drop_while<T>(xs: List<T>, pred: (T) -> Bool) -> List<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
scan
fun scan<T, A>(xs: List<T>, seed: A, f: (A, T) -> A) -> List<A>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
windows
fun windows<T>(xs: List<T>, width: Int) -> List<List<T>>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
pairwise
fun pairwise<T>(xs: List<T>) -> List<List<T>>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
sum_by
fun sum_by<T>(xs: List<T>, f: (T) -> Int) -> IntNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
min_by
fun min_by<T, K>(xs: List<T>, f: (T) -> K) -> Optional<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
max_by
fun max_by<T, K>(xs: List<T>, f: (T) -> K) -> Optional<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
frequencies
fun frequencies<T>(xs: List<T>) -> Map<Str, Int>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
cartesian
fun cartesian<A, B>(a: List<A>, b: List<B>) -> List<List<Any>>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source