FoldBundle

rescala.operator.FoldBundle
trait FoldBundle

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait EventBundle
trait Operators
trait Interface
class FullMVApi
object default
class FromScheduler[S]
object default
object ParRPDefault
Show all
Self type

Members list

Type members

Classlikes

object Fold

Folds when any one of a list of events occurs, if multiple events occur, every fold is executed in order.

Folds when any one of a list of events occurs, if multiple events occur, every fold is executed in order.

Example for a counter that can be reset:

 Fold(0)(
   add act { x => current + v },
   reset act { _ => 0 }
 )

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Fold.type

Value members

Concrete methods

inline def current[S](using fs: FoldState[S]): S

Extensions

Extensions

extension [T](e: <none>[T])
infix inline def act[S](inline f: (FoldState[S]) ?=> T => S): Branch[S]