.. multimethod
Methods
- ..(start:Any, end:Any) Source: stdlib.ngs:1174
Constructs open-open predicate range Returns
PredRangeExample
[10,200,300,40,50][(X==10)..(X==40)] # [200, 300] ["abc", "aaa", "bbb", "def"][/^abc/../^def/] # ["aaa", "bbb"]
- ..(start:Any, end:Any) Source: stdlib.ngs:1188
Constructs closed-open numerical range Parameters
start numerical or null (at least one of start or end must be non-null) end numerical or null (at least one of start or end must be non-null) Returns
NumRangeExample
(1..4).sum() # 6