Treatment map

std/ops/option/block::map


Generics

◻ T (any)

Inputs

⇥ option: Block<Option<T>>

Outputs

↦ none: Block<void>
↦ value: Block<T>


Map an option

Takes a blocking option and either emit the contained value on value or none if empty.

ℹ️ This treatment aims to be used in conjuction with reduce.