Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

infix ..

hasInterval.infix ..

defining an integer interval from this to other, both inclusive

special cases of interval a..b:

a < b: the interval from a to b, both inclusive
a == b: the interval containing only one element, a
a > b: an empty interval
create a list from this interval
create a stream of all the elements of this interval, in order.

redefines:

string representation of this interval, e.g., "1..10"
does this range contain the given value?

redefines:

apply function f to all elements in this interval

redefines:

Create a Sequence that is stepping through this interval skipping values. For a
non-negative step parameter, the stream will return lower, lower+step,
lower+2*step, etc. as long as these values are <= upper.

For a negative step parameter, the stream will return upper, upper+step,
upper+2*step, etc. as long as these values are >= lower. Note that this means
that a negative step will produce a non-empty stream for an empty interval with
lower > upper!
use map implementation from Sequence: