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:
Set i = Set("i").Represents("resources").HasElementsIn(1, 4);
has elements { 1, 2, 3 }.
Namespace: Orx.MathProgAssembly: Orx.MathProg (in Orx.MathProg.dll) Version: 1.0.0
public Set HasElements(
IEnumerable<int> indices,
string expression = ""
)
- indices IEnumerableInt32
- Indices/elements of the set.
- expression String (Optional)
- Element generator expression.
Set