Class Val.Range

Description

Generic lightweight range type. Supports any values for lower and upper boundaries that implement lfun::`<() and lfun::`-(), and preferrably also cast to int and string.

Note

Can only contain a single contiguous range.

Note

The empty range must be stored as (Math.inf, -Math.inf) if assigned directly to from and till.


Variable from

value_type Val.Range.from

Description

The lower inclusive boundary.


Variable till

value_type Val.Range.till

Description

The upper exclusive boundary.


Method create

Val.Range Val.Range(value_type from, value_type till)
Val.Range Val.Range(this_program copy)
Val.Range Val.Range()

Parameter from

Lower inclusive boundary for the range. Specify no lower-boundary by filling in -Math.inf.

Parameter till

Upper exclusive boundary for the range. Specify no upper-boundary by filling in Math.inf.

See also

Math.inf