Method ADT.Interval()->`|()

class ADT.Interval

Method `|

this_program(< RangeType >) res = ADT.Interval() | i

Description

Combine this interval with i. The result uses min(a, i->a) and max(b, i->b) as its endpoints. An error is thrown if the intervals neither overlap nor meet at an endpoint included by at least one of them.

Note

Equal-coordinate boundary selection follows min() and max() for both endpoints.

See also

lfun::`+(), touches()