iter module

Maylang standard-library module.

import "iter" as iter;

Functions

enumerate

may
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

may
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

may
fun find_index<T>(xs: List<T>, pred: (T) -> Bool) -> Int

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

find_value

may
fun find_value<T>(xs: List<T>, pred: (T) -> Bool, fallback: T) -> T

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

take_while

may
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

may
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

may
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

may
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

may
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

may
fun sum_by<T>(xs: List<T>, f: (T) -> Int) -> Int

No description yet. Read the declaration source for the exact contract.

supported · full runtime · source

min_by

may
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

may
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

may
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

may
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