bidiOpt<A, B> static method

BiDiOpt<A, B> bidiOpt<A, B>(
  1. BiDi<A, B> bidi
)

Implementation

static BiDiOpt<A, B> bidiOpt<A, B>(BiDi<A, B> bidi) => BiDi(
  forward: (a) => a?.let(bidi.forward),
  backward: (b) => b?.let(bidi.backward),
);