Range.subtract

Subtracts the specified range from this range, returning the remaining range(s) via the out parameters. Two separate ranges can result from a subtraction if the range being subtracted bisects the range being subtracted from, like:

subtract ------ from -------------- remainder ---- ----

struct Range(T)
void
subtract

Parameters

other This

range to subtract from this

lower This

lower output range. If only a single range results from the subtraction, it will be returned via this parameter

upper This

upper output range. Only set when the subtraction results in two ranges

Meta