Represent an inclusive range [x, y] that can be generated by using discrete operations
Attributes
- Companion
- object
- Source
- Range.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
Attributes
- Source
- Range.scala
Attributes
- Source
- Range.scala
Subtract a Range from this range.
Verify that the passed range is a sub-range
Verify is x is in range [start, end]
Folds over the elements of the range from left to right; accumulates a value of type B by applying the function f to the current value and the next element.
Folds over the elements of the range from left to right; accumulates a value of type B by applying the function f to the current value and the next element.
Attributes
- Source
- Range.scala
Folds over the elements of the range from right to left; accumulates a value of type B by applying the function f to the current value and the next element.
Folds over the elements of the range from right to left; accumulates a value of type B by applying the function f to the current value and the next element.
Attributes
- Source
- Range.scala
Apply function f to each element in range [star, end]
.
Apply function f to each element in range [star, end]
. Does nothing if end
precedes start
.
Attributes
- Source
- Range.scala
Attributes
- Source
- Range.scala
Verify whether or not the passed range overlaps the current range
Returns range [end, start]
Return an iterator for the values in the range.
Return an iterator for the values in the range. The iterator moves from start to end taking into consideration the provided ordering. If (start > end) it uses start's predecessor offered by the Discrete instance, otherwise it uses the start's successor.
Attributes
- Source
- Range.scala
Return all the values in the Range as a List.
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product