Float.G.<>

class <>[A <: Raw.Float](_start: A, e: A, eIn: Boolean) extends <>[A] with Raw.Specialized.OnFloat
class <>[A]
trait Able.Contain[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

override def contains(v: A): Boolean

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
def contains(r: Float.G.<>[A]): Boolean
override def contains(r: <>[A]): Boolean

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
final def end: A
final def endIsIn: Boolean
override def equals(v: Any): Boolean
Definition Classes
Range -> Any
Inherited from
Range
Source
__.scala
def isEmpty: Boolean

Empty check

Empty check

Checks if the range is able contain anything.

For empty range the start and end values are the same and the end value is not inclusive

Inherited from
Range
Source
__.scala
def join(v: A): Float.G.<>[A]
def join(r: Float.G.<>[A]): Float.G.<>[A]
def join(r: <>[A]): Float.G.<>[A]
@scala.annotation.targetName("overlap_Opt")
@scala.annotation.targetName("overlap_Opt")
def overlap_?(r: <>[A]): Opt[Float.G.<>[A]]
def overlaps(r: Float.G.<>[A]): Boolean
def overlaps(r: <>[A]): Boolean
inline def raw[RAW <: <>.RawType[A]](using inline s: Given.RangeTag.Raw[A, RAW]): RAW

Raw range

Raw range

Returns primitive specialized range implementation.

The method would not compile for a non specializable range.

Inherited from
Range
Source
__.scala
final def start: A
@scala.annotation.targetName("step_Stream")
def step_~(step: A): Float.G.~[A]
def step_~(step: Int)(using Able.Sequence[A]): ~[A]

Stepped stream

Stepped stream

For sequential types, the method returns a stream of values with given step.

 (1 <> 10).step_~(2).tp  // Prints: ~(1, 3, 5, 7, 9)
Inherited from
Range
Source
__.scala
def step_~(f: A => A): ~[A]

Mapped stream

Mapped stream

Returns a stream containing the first range value and the result of applying given function to this value and the produced results. The stream ends when the function result is no longer within range.

 (1 <> 10).step_~( _ + 3).tp  // Prints: ~(1, 4, 7, 10)
Inherited from
Range
Source
__.scala