Double Specialized Generic Range
To be used with Double based opaque values.
- Source
- Range.scala
trait Any.Z.PrimitiveTag.Double
trait Any.Z.PrimitiveTag
class Range[Double.G.Range.A]
trait Able.Empty
trait Able.Contain[Double.G.Range.A]
class java.lang.Object
trait scala.Matchable
class Any
Def
Check if within
Check if within
Returns true if this
range contains specified range
(1 <> 9) contains (3 <> 7) // Returns: true
(1 <> 5) contains (3 <> 7) // Returns: false
- Definition Classes
- Source
- Range.scala
Check if within
Check if within
Returns true if this
range contains specified range
(1 <> 9) contains (3 <> 7) // Returns: true
(1 <> 5) contains (3 <> 7) // Returns: false
- Definition Classes
- Source
- Range.scala
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)