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