Companion

object Companion

Functions

Link copied to clipboard
fun A_Set.equalsSet(aSet: A_Set): Boolean

Dispatch to the descriptor.

Link copied to clipboard
fun A_Set.hasElement(elementObject: A_BasicObject): Boolean

Answer whether this set contains the specified element.

Link copied to clipboard
fun A_Set.isSubsetOf(another: A_Set): Boolean

Answer true if and only if every element of the receiver is also present in the provided set.

Link copied to clipboard
fun A_Set.setElementsAreAllInstancesOfKind(kind: AvailObject): Boolean

Check if all elements of the set are instances of the specified kind (any type that isn't an instance type).

Link copied to clipboard
fun A_Set.setIntersectionCanDestroy(otherSet: A_Set, canDestroy: Boolean): A_Set

Answer a set containing all values that are present simultaneously in both the receiver and the otherSet.

Link copied to clipboard
fun A_Set.setIntersects(otherSet: A_Set): Boolean

Answer whether the receiver and otherSet have any elements in common.

Link copied to clipboard
fun A_Set.setMinusCanDestroy(otherSet: A_Set, canDestroy: Boolean): A_Set

Answer a set containing all values that are present in the receiver but not in otherSet.

Link copied to clipboard
fun setSizeStatic(self: AvailObject): Int

Answer the given A_Set's size.

Link copied to clipboard
fun A_Set.setUnionCanDestroy(otherSet: A_Set, canDestroy: Boolean): A_Set

Answer a set containing all the elements of this set and all the elements of the otherSet.

Link copied to clipboard
fun A_Set.setWithElementCanDestroy(newElementObject: A_BasicObject, canDestroy: Boolean): A_Set

Answer a set like this one but with newElementObject present. If it was already present in the original set then answer that. The set might be modified in place (and then returned) if canDestroy is true and the set is mutable.

Link copied to clipboard
fun setWithElementStatic(self: AvailObject, newElementObject: AvailObject): AvailObject

Answer an A_Set with an additional element. The original can be destroyed if it's mutable.

Link copied to clipboard
fun A_Set.setWithoutElementCanDestroy(elementObjectToExclude: A_BasicObject, canDestroy: Boolean): A_Set

Answer a set like this one but with elementObjectToExclude absent. If it was already absent in the original set then answer that. The set might be modified in place (and then returned) if canDestroy is true and the set is mutable.

Properties

Link copied to clipboard
val A_Set.asTuple: A_Tuple

Construct a tuple from the receiver, a set. Element ordering in the tuple will be arbitrary and unstable – two successive invocations on the same set may produce two differently ordered tuples.

Link copied to clipboard
val A_Set.isSet: Boolean

Is the receiver an Avail set?

Link copied to clipboard
val A_Set.setSize: Int

Answer the number of values in the set.

Link copied to clipboard
val setSizeMethod: CheckedMethod
Link copied to clipboard