.. multimethod

Methods

..(start:Any, end:Any) Source: stdlib.ngs:2163
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:2177
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