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