map<A, B> function

Optional<B> Function(Optional<A>) map<A, B>(
  1. B mapper(
    1. A p1
    )
)

Implementation

Optional<B> Function(Optional<A>) map<A, B>(final B Function(A p1) mapper) {
  return (a) => a.map(mapper);
}