Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment get

std/data/map::get


Generics

◻ T (any)

Parameters

↳ var key: string

Inputs

⇥ map: Stream<Map> (std/data/map::Map)

Outputs

↦ value: Stream<Option<T>>


For every map received on the stream, look up key and emit the result as Option<T> on value.

Emits none if the key is absent or the stored value does not match type T.