map<A, B> function
Implementation
Option<B> Function(Option<A>) map<A, B>(
B Function(A) mapper,
) =>
(option) => match(
onNone: None<B>(),
onSome: (A value) => Some(
mapper(value),
),
)(option);