class Range[A <: Any.Long](_start: A, _end: A, endIn: Boolean) extends Val.Range[A] with Able.Stream[A]
Long Specialized Generic Range
To be used with Long based opaque values.
- Source
- Range.scala
trait Any.Z.PrimitiveTag.Long
trait Any.Z.PrimitiveTag
trait Able.Stream[Long.G.Range.A]
class Range[Long.G.Range.A]
trait Able.Empty
trait Able.Contain[Long.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
Implicitly added by implicitToStream
Read next option
Read next option
Optionally returns next element or empty option
If empty option is returned, the stream is considered exhasted and should be discarded
This is the only real method of stream interface, the rest of functionality is provided with extension methods for:
- Source
- __.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)