class Range[A](val start: A, val end: A, val endIsIn: Boolean)(using val ordering: Ordering[A]) extends AnyRef.G.Range.X.Abstract[A]
- Source
- Range.scala
class AnyRef.G.Range.X.Abstract[AnyRef.G.Range.A]
class Range[AnyRef.G.Range.A]
trait Able.Empty
trait Able.Contain[AnyRef.G.Range.A]
class java.lang.Object
trait scala.Matchable
class Any
Def
Stream of calculated values
Stream of calculated values
Returns a stream starting with the first range value. Every next value is calculated by applying the given function to the prior value. The stream ends when the function result is no longer within range.
(1 <> 10).stepStream( _ + 3).tp // Prints: Stream(1, 4, 7, 10)