object Scan extends Serializable
- Alphabetic
- By Inheritance
- Scan
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
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
- implicit def applicative[I]: Applicative[[β$0$]Scan[I, β$0$]]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def const[T](t: T): Aux[Any, Unit, T]
The trivial scan that always returns the same value, regardless of input
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def from[I, S, O](initState: S)(presentAndNextStateFn: (I, S) => (O, S)): Aux[I, S, O]
- def fromAggregator[A, B, C](aggregator: Aggregator[A, B, C], initState: B): Aux[A, B, C]
- returns
A scan which, when given
[a_1, ..., a_n]
outputs[c_1, ..., c_n]
wherec_i = initState + aggregator.prepare(a_1) + ... + aggregator.prepare(a_i)
- def fromFunction[I, O](f: (I) => O): Aux[I, Unit, O]
- def fromMonoidAggregator[A, B, C](monoidAggregator: MonoidAggregator[A, B, C]): Aux[A, B, C]
- returns
A scan which, when given
[a_1, ..., a_n]
outputs[c_1, ..., c_n]
wherec_i = monoidAggregator.monoid.zero + aggregator.prepare(a_1) + ... + aggregator.prepare(a_i)
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def identity[A]: Aux[A, Unit, A]
- val index: Aux[Any, Long, Long]
A Scan whose
Nth
output is the numberN
(starting from 0). - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterate[S, O](initState: S)(destructor: (S) => (O, S)): Aux[Any, S, O]
Scans take streams of inputs to streams of outputs, but some scans have trivial inputs and just produce a stream of outputs.
Scans take streams of inputs to streams of outputs, but some scans have trivial inputs and just produce a stream of outputs. Streams can be thought of as being a hidden state that is queryable for a head element, and another hidden state that represents the rest of the stream.
- S
The hidden state of the stream that we are turning into a Scan.
- O
The type of the elments of the stream that we are turning into a Scan
- initState
The initial state of the scan; think of this as an infinite stream.
- destructor
This function decomposes a stream into the its head-element and tail-stream.
- returns
A Scan whose inputs are irrelevant, and whose outputs are those that we would get from implementing a stream using the information provided to this method.
- def mutable[I, S, O](initStateCreator: => S)(presentAndUpdateStateFn: (I, S) => O): Aux[I, S, O]
- initStateCreator
A call-by-name method that allocates new mutable state
- presentAndUpdateStateFn
A function that both presents the output value, and has the side-effect of updating the mutable state
- returns
A Scan that safely encapsulates state while it's doing its thing.
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()