collections module
Maylang standard-library module.
import "collections" as collections;
Module note — Stacks and queues store shared list references in maps; mutations are visible through aliases.
Functions
stack
fun stack<T>() -> List<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
stack_push
fun stack_push<T>(st: List<T>, value: T) -> List<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
stack_pop
fun stack_pop<T>(st: List<T>) -> Optional<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
stack_peek
fun stack_peek<T>(st: List<T>) -> Optional<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
stack_size
fun stack_size<T>(st: List<T>) -> IntNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
stack_empty
fun stack_empty<T>(st: List<T>) -> BoolNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
queue
fun queue<T>() -> List<List<T>>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
queue_push
fun queue_push<T>(q: List<List<T>>, value: T) -> List<List<T>>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
queue_pop
fun queue_pop<T>(q: List<List<T>>) -> Optional<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
queue_size
fun queue_size<T>(q: List<List<T>>) -> IntNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
queue_empty
fun queue_empty<T>(q: List<List<T>>) -> BoolNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_new
fun set_new<T>() -> Map<T, Bool>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_add
fun set_add<T>(s: Map<T, Bool>, value: T) -> Map<T, Bool>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_has
fun set_has<T>(s: Map<T, Bool>, value: T) -> BoolNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_remove
fun set_remove<T>(s: Map<T, Bool>, value: T) -> Map<T, Bool>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_values
fun set_values<T>(s: Map<T, Bool>) -> List<T>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_size
fun set_size<T>(s: Map<T, Bool>) -> IntNo description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_union
fun set_union<T>(a: Map<T, Bool>, b: Map<T, Bool>) -> Map<T, Bool>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_intersect
fun set_intersect<T>(a: Map<T, Bool>, b: Map<T, Bool>) -> Map<T, Bool>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source
set_difference
fun set_difference<T>(a: Map<T, Bool>, b: Map<T, Bool>) -> Map<T, Bool>No description yet. Read the declaration source for the exact contract.
supported · full runtime · source