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 R lists, typed list[T], and over Arrays.
Str 36 Functions over single strings.
Num 74 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 7 Booleans are R’s TRUE and 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>.