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

Members list

Concise view

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
Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
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

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

Create a transducer that immediately stops.

Create a transducer that immediately stops.

Attributes

Source:
Transducer.scala

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