Transducer

doodle.interact.animation.Transducer
See theTransducer companion trait
object Transducer

Attributes

Companion
trait
Source
Transducer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Transducer.type

Members list

Type members

Classlikes

final case class Box[S, O](transducer: Aux[S, O])(state: S)

This associates a transducer with its state, useful to get around issues with inference of existential types.

This associates a transducer with its state, useful to get around issues with inference of existential types.

Attributes

Source
Transducer.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Box[S, O]

Types

type Aux[S0, O0] = Transducer[O0] { type State = S0; }

Aux instance for Transducer. Use when you need to make the State type visible as a type parameter.

Aux instance for Transducer. Use when you need to make the State type visible as a type parameter.

Attributes

Source
Transducer.scala

Value members

Concrete methods

def apply[A](elts: A*): Transducer[A]

Create a transducer that produces the given elements in-order and then stops.

Create a transducer that produces the given elements in-order and then stops.

Attributes

Source
Transducer.scala
def empty[A]: Transducer[A]

Create a transducer that immediately stops.

Create a transducer that immediately stops.

Attributes

Source
Transducer.scala
def fromList[A](elts: List[A]): Transducer[A]

Create a transducer that produces elements in-order from the given list and then stops.

Create a transducer that produces elements in-order from the given list and then stops.

Attributes

Source
Transducer.scala
def pure[A](elt: A): Transducer[A]

Create a transducer that produces the given element and then stops.

Create a transducer that produces the given element and then stops.

Attributes

Source
Transducer.scala
def scanLeft[A](start: A)(update: A => A): Transducer[A]

Create a transducer that starts with given start state and runs forever. The function update is used to update the state.

Create a transducer that starts with given start state and runs forever. The function update is used to update the state.

Attributes

Source
Transducer.scala
def scanLeftUntil[A](start: A)(update: A => A)(stop: A => Boolean): Transducer[A]

Create a transducer that starts with given start state, and runs until stop returns false. The function f is used to update the state.

Create a transducer that starts with given start state, and runs until stop returns false. The function f is used to update the state.

Attributes

Source
Transducer.scala

Implicits

Implicits

implicit def transducerMonoid[A]: Monoid[Transducer[A]]

Attributes

Source
Transducer.scala