createFoldNode
fun <A, B> createFoldNode(initialValue: A, eventNode: Node<EventState<B>>, reducer: SampleScope.(A, B) -> A): Node<A>(source)
Creates a node whose value updates by the action specified by the reducer.
The node will start with initialValue, and whenever eventNode fires, the value will update according to the reducer.