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

may
fun stack<T>() -> List<T>

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

supported · full runtime · source

stack_push

may
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

may
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

may
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

may
fun stack_size<T>(st: List<T>) -> Int

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

supported · full runtime · source

stack_empty

may
fun stack_empty<T>(st: List<T>) -> Bool

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

supported · full runtime · source

queue

may
fun queue<T>() -> List<List<T>>

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

supported · full runtime · source

queue_push

may
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

may
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

may
fun queue_size<T>(q: List<List<T>>) -> Int

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

supported · full runtime · source

queue_empty

may
fun queue_empty<T>(q: List<List<T>>) -> Bool

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

supported · full runtime · source

set_new

may
fun set_new<T>() -> Map<T, Bool>

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

supported · full runtime · source

set_add

may
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

may
fun set_has<T>(s: Map<T, Bool>, value: T) -> Bool

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

supported · full runtime · source

set_remove

may
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

may
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

may
fun set_size<T>(s: Map<T, Bool>) -> Int

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

supported · full runtime · source

set_union

may
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

may
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

may
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