Skip to content
ry

std

ry’s standard library is the std namespace. With the prelude on, the default, every function is also in scope by its bare name, such as List.map; with [check] prelude = false it is reachable only as std::List.map. The standard library guide covers the conventions the modules share.

Module Functions Summary
Result 9 A result is :Ok(value) or :Err(error), typed Result<T, E>.
List 78 Functions over List<T>, ry’s ordered sequence of values of one type.
Str 37 Functions over single strings.
Num 82 Functions over single numbers, integer or double, and eight constants (Num.pi, Num.tau, Num.e, Num.infinity and the integer and double limits).
Bool 8 A Bool is TRUE or FALSE, never NA.
Dict 27 A dictionary maps keys to values, typed Dict<K, V>.
Set 22 A set of distinct keys, typed Set<T>.