.. multimethod

Methods

..(start:Any, end:Any) Source: stdlib.ngs:1303
Constructs open-open predicate range

Returns

PredRange

Example

[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:1317
Constructs closed-open numerical range

Parameters

startnumerical or null (at least one of start or end must be non-null)
endnumerical or null (at least one of start or end must be non-null)

Returns

NumRange

Example

(1..4).sum()  # 6