@continuum-js/frp / flatten
Function: flatten()
Call Signature
flatten<
A>(w):State<A>
Defined in: index.ts:1579
Follow the state (or stream) currently selected by an outer state — State<State<A>> → State<A> and State<Stream<A>> → Stream<A> under one name. The switch commits at the moment boundary (see FRP-MODEL §6).
Type Parameters
A
A
Parameters
w
Returns
State<A>
Call Signature
flatten<
A>(w):Stream<A>
Defined in: index.ts:1580
Follow the state (or stream) currently selected by an outer state — State<State<A>> → State<A> and State<Stream<A>> → Stream<A> under one name. The switch commits at the moment boundary (see FRP-MODEL §6).
Type Parameters
A
A
Parameters
w
Returns
Stream<A>