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/block::get


Generics

◻ T (any)

Parameters

↳ var key: string

Inputs

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

Outputs

↦ value: Block<Option<T>>


Receive one Map block and emit the value stored under key as Option<T> on value.

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