ck/set▲toc

Integer set

.

type setck/set/set: V

Sets of integers. Duplicates are omitted.

Create an empty set.

Remove an element from a set. Do nothing if the given value does not exist.

fun foreach( t : setck/set/set: V, action : (intstd/core/types/int: V) -> e types/() ) : e types/()

Iterate over elements in ascending order.

Add a value to a set. Do nothing if the given value already exists.

Check whether a set is empty.

Return the maximum element of a set.

Check whether a value belongs to a set.

Return the minimum element of a set.

Create a set with a single element.

private import std/core/typesstd/core/types, std/core/hndstd/core/hnd, std/corestd/core