object Segment
- Source
- Segment.scala
- Alphabetic
- By Inheritance
- Segment
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final type Defer = (⇒ Unit) ⇒ Unit
- final case class Depth(value: Int) extends AnyVal with Product with Serializable
-
final
class
Force[+O, +R] extends AnyVal
Operations on a
Segment
which force evaluation of some part or all of a segments elements. - final case class SingleChunk[O](chunk: Chunk[O]) extends Segment[O, Unit] with Product with Serializable
- final class Step[+O, +R] extends AnyRef
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply[O](os: O*): Segment[O, Unit]
Creates a segment with the specified values.
-
def
array[O](os: Array[O]): Segment[O, Unit]
Creates a segment backed by an array.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
catenated[O](os: Catenable[Segment[O, Unit]]): Segment[O, Unit]
Creates a segment backed by 0 or more other segments.
-
def
catenated[O, R](os: Catenable[Segment[O, R]], ifEmpty: ⇒ R): Segment[O, R]
Creates a segment backed by 0 or more other segments.
- def catenatedChunks[O](os: Catenable[Chunk[O]]): Segment[O, Unit]
- def chunk[O](c: Chunk[O]): Segment[O, Unit]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
constant[O](o: O): Segment[O, Unit]
Creates an infinite segment of the specified value.
- implicit val defaultSegmentMonadInstance: Traverse[[α$0$]Segment[α$0$, Unit]] with Monad[[α$1$]Segment[α$1$, Unit]]
-
def
empty[O]: Segment[O, Unit]
Creates an empty segment of type
O
. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
from(n: Long, by: Long = 1): Segment[Long, Nothing]
Creates a segment which outputs values starting at
n
and incrementing byby
between each value. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
indexedSeq[O](os: IndexedSeq[O]): Segment[O, Unit]
Creates a segment backed by an
IndexedSeq
. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
pure[O, R](r: R): Segment[O, R]
Creates a segment which outputs no values and returns
r
. - def resultMonad[T]: Monad[[β$4$]Segment[T, β$4$]]
- implicit def segmentMonoidInstance[A]: Monoid[Segment[A, Unit]]
- def segmentSemigroupT[A, B]: Semigroup[Segment[A, B]]
-
def
seq[O](os: Seq[O]): Segment[O, Unit]
Creates a segment backed by a
Seq
. -
def
singleton[O](o: O): Segment[O, Unit]
Creates a segment which outputs a single value
o
. - def step[O, R](rem: ⇒ Segment[O, R])(s: ⇒ Unit): Step[O, R]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unfold[S, O](s: S)(f: (S) ⇒ Option[(O, S)]): Segment[O, Unit]
Creates a segment by successively applying
f
until aNone
is returned, emitting each outputO
and using each outputS
as input to the next invocation off
. -
def
unfoldChunk[S, O](s: S)(f: (S) ⇒ Option[(Chunk[O], S)]): Segment[O, Unit]
Creates a segment by successively applying
f
until aNone
is returned, emitting each output chunk and using each outputS
as input to the next invocation off
. -
def
vector[O](os: Vector[O]): Segment[O, Unit]
Creates a segment backed by a
Vector
. -
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )