Package avail.interpreter.primitive.sets

Types

Link copied to clipboard
object P_CreateSetType : Primitive

Primitive: Create a set type.

Link copied to clipboard
object P_ElementInSet : Primitive

Primitive: Check if the object is an element of the set.

Link copied to clipboard
object P_SetDifference : Primitive

Primitive: Answer the difference between two sets (set1 - set2).

Link copied to clipboard
object P_SetIntersection : Primitive

Primitive: Answer the intersection of two sets.

Link copied to clipboard
object P_SetIsSubset : Primitive

Primitive: Check if set1 is a subset of set2.

Link copied to clipboard
object P_SetSize : Primitive

Primitive: Answer the size of the set.

Link copied to clipboard
object P_SetToTuple : Primitive

Primitive: Convert a set into an arbitrarily ordered tuple. The conversion is unstable – two successive calls may produce different orderings.

Link copied to clipboard
object P_SetTypeElementType : Primitive

Primitive: Extract a set type's element type.

Link copied to clipboard
object P_SetTypeSizes : Primitive

Primitive: Extract a set type's range of sizes. This is the range of sizes that a set must fall in to be considered a member of the set type, assuming the elements all satisfy the set type's element type.

Link copied to clipboard
object P_SetUnion : Primitive

Primitive: Answer the union of two sets.

Link copied to clipboard
object P_SetWith : Primitive

Primitive: Answer a new set like the argument but including the new element. If it was already present, answer the original set.

Link copied to clipboard
object P_SetWithout : Primitive

Primitive: Answer a new set like the argument but without the excluded element. If it was already absent, answer the original set.

Link copied to clipboard
object P_TupleToSet : Primitive

Primitive: Convert a tuple into a set.