AnyRef.G.Range.X.Base
- Source
- Range.scala
class Range[AnyRef.G.Range.X.Base.A]
trait Able.Empty
trait Able.Contain[AnyRef.G.Range.X.Base.A]
class java.lang.Object
trait scala.Matchable
class Any
class Period
class AnyRef.G.Range.X.Abstract[AnyRef.G.Range.X.Abstract.A]
class AnyRef.G.Range[AnyRef.G.Range.A]
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)