Char.G.<>

class <>[A <: Raw.Char](_start: A, _size: Int) extends <>[A] with Able.Size with Able.~[A] with Raw.Specialized.OnChar
trait Able.~[A]
trait Able.Size
class <>[A]
trait Able.Contain[A]
class java.lang.Object
trait scala.Matchable
class Any

Def

Constructor

def this(start: A, end: A, endIn: Boolean)

Body

@scala.annotation.targetName("stream")
def ~: Char.G.~[A]
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: Char.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
def end: A
def endIsIn: Boolean
def endX: A
override def equals(v: Any): Boolean
Definition Classes
Range -> Any
Inherited from
Range
Source
__.scala
override def isEmpty: Boolean

Empty check

Empty check

Returns true if instance is empty.

Definition Classes
Source
Range.scala
def join(v: A): Char.G.<>[A]
def join(r: Char.G.<>[A]): Char.G.<>[A]
def join(r: <>[A]): Char.G.<>[A]
@scala.annotation.targetName("overlap_Opt")
def overlap_?(r: Char.G.<>[A]): Opt[Char.G.<>[A]]
@scala.annotation.targetName("overlap_Opt")
def overlap_?(r: <>[A]): Opt[Char.G.<>[A]]
def overlaps(r: Char.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
def size: Int
def start: A
@scala.annotation.targetName("step_Stream")
def step_~(step: Int): Char.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

Extension

inline def flatMap[A <: Raw.Char, T, STM <: ~~.AnyType[T]](inline f: A => ~[T])(using inline t: Given.StreamTag[B, STM]): STM
inline def foreach[A <: Raw.Char, U](inline f: A => U): Unit
inline def map[A <: Raw.Char, T, STM <: ~~.AnyType[T]](inline f: A => B)(using inline t: Given.StreamTag[B, STM]): STM