Skip to content

@continuum-js/frp


@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

State<State<A>>

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

State<Stream<A>>

Returns

Stream<A>