Package-level declarations
Types
Functions
Link copied to clipboard
fun <BoundType : Comparable<BoundType>> ClosedRange<BoundType>.containsRange(other: ClosedRange<BoundType>): Boolean
Checks if other range is entirely inside this.
Link copied to clipboard
fun <BoundType : Comparable<BoundType>> ClosedRange<BoundType>.intersectsRange(other: ClosedRange<BoundType>): Boolean
Checks if other range intersects this.
Link copied to clipboard
fun <BoundType : Comparable<BoundType>> ClosedRange<BoundType>.joinedByRange(other: ClosedRange<BoundType>, rangeFactory: RangeFactory<BoundType>): ClosedRange<BoundType>
Returns a new range by joining other range and this.
Link copied to clipboard
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.
Link copied to clipboard
fun <BoundType : Comparable<BoundType>, LengthType : Comparable<LengthType>> ClosedRange<BoundType>.touchesRange(other: ClosedRange<BoundType>, step: LengthType, math: BoundMath<BoundType, LengthType>): Boolean
Link copied to clipboard
fun <BoundType : Comparable<BoundType>> ClosedRange<BoundType>.trimmedByRange(other: ClosedRange<BoundType>, rangeFactory: RangeFactory<BoundType>): ClosedRange<BoundType>
Returns a new range by trimming this by other's bounds.