OCLOperators subSequence
No edit summary
No edit summary
Line 1: Line 1:
Returns a smaller collection from a start to stop
Returns a smaller collection from a start to stop.
subSequence(<start>, <stop>)
Please note that the index number is 1-based.
Sequence{1..20}->subSequence(10,15)
The expression above will return numbers 10, 11, 12, 13, 14 and 15.
 
If you supply index values outside the source collection, the result collection will be empty.
[[Category:OCLOperators]]
[[Category:OCLOperators]]

Revision as of 11:42, 25 November 2020

Returns a smaller collection from a start to stop.

subSequence(<start>, <stop>)

Please note that the index number is 1-based.

Sequence{1..20}->subSequence(10,15)

The expression above will return numbers 10, 11, 12, 13, 14 and 15.

If you supply index values outside the source collection, the result collection will be empty.

This page was edited 85 days ago on 02/10/2024. What links here