Range

data class Range(val start: Int?, val end: Int?) : Iterable<NumberValue>

Represents a range of numbers, which can also be iterated through.

Constructors

Link copied to clipboard
constructor(start: Int?, end: Int?)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val end: Int?

end of the range (inclusive). If null, the range is infinite on the right end. end start

Link copied to clipboard
Link copied to clipboard
val start: Int?

start of the range (inclusive). If null, the range is infinite on the left end

Functions

Link copied to clipboard

Accepts a list of tokens to a shared visitor.

Link copied to clipboard
operator fun contains(range: Range): Boolean

Checks if this range (bounds) contains another range. Both start and end of the bounds range must be non-null.

Link copied to clipboard

Groups a sequence of patterns into a single Regex where every capture group is identified by its token type (name).

Link copied to clipboard
fun isIn(bounds: Range, lowerBound: Int = bounds.start!!, upperBound: Int = bounds.end!!): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<NumberValue>
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String