split By Range
fun <BoundType : Comparable<BoundType>, LengthType : Comparable<LengthType>> ClosedRange<BoundType>.splitByRange(other: ClosedRange<BoundType>, step: LengthType, math: BoundMath<BoundType, LengthType>, rangeFactory: RangeFactory<BoundType>): List<ClosedRange<BoundType>>
Cuts other range from this and returns a list of non-empty pieces that are left.
Parameters
other
the other range.
step
minimal non-zero range length.
math
the math.