match<A, B> function

Stream<B> Function(StreamOption<A>) match<A, B>({
  1. required B onNone,
  2. required B onSome(
    1. A
    ),
})

Implementation

Stream<B> Function(
  StreamOption<A>,
) match<A, B>({
  required B onNone,
  required B Function(A) onSome,
}) =>
    (option$) => option$.map(
          O.match(
            onNone: onNone,
            onSome: onSome,
          ),
        );