SetBuilderDefinitionHasElements(IEnumerableInt32, String) Method

Finalizes the set builder and returns the resulting set.

The set generates elements in [start, untilExclusive).

For instance, the following set:

C#
Set i = Set("i").Represents("resources").HasElementsIn(1, 4);
has elements { 1, 2, 3 }.

Definition

Namespace: Orx.MathProg
Assembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
C#
public Set HasElements(
	IEnumerable<int> indices,
	string expression = ""
)

Parameters

indices  IEnumerableInt32
Indices/elements of the set.
expression  String  (Optional)
Element generator expression.

Return Value

Set

See Also