SetBuilderKeyHasElementsUntil Method

Finalizes the set builder and returns the resulting set.

The set generates elements in [0, untilExclusive).

For instance, the following set:

C#
int numNodes = 4;
Set i = Set("i").Represents("nodes").HasElementsUntil(numNodes);
has elements { 0, 1, 2, 3 }.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public Set HasElementsUntil(
	int untilExclusive
)

Parameters

untilExclusive  Int32
Last element (exclusive) of the set.

Return Value

Set

See Also