Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cardinal ¶
type Cardinal uint
Cardinal represents a cardinal number.
const CardinalAleph0 Cardinal = CardinalLarge + 1
CardinalAleph0 represents the cardinality of the natural numbers, the smallest infinite cardinal, commonly denoted by ℵ₀.
CardinalLarge represents a finite cardinal that is too large to be represented by a non-negative int.
func CardinalFromInt ¶
CardinalFromInt turns a non-negative int into a Cardinal. It returns an error if the int is negative.
func QuickCardinalityOf ¶
QuickCardinalityOf returns the cardinality of the set if it can be determined without counting its elements.
type CountableSetOf ¶
CountableSetOf represents a countable set of objects. When enumerating a countable set it can yield its objects in any order but must not yield the same object twice.
type Modifiable ¶
type Modifiable[Obj any] interface { // Exclude modifies the collection so that none of the specified objects are present in it. Exclude(...Obj) // Include modifies the collection so that all of the specified objects are present in it. Include(...Obj) }
Modifiable defines how a set can be modified.