flatMap<A, B> function

Optional<B> Function(Optional<A>) flatMap<A, B>(
  1. Optional<B> flatMapper(
    1. A p1
    )
)

Implementation

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