forProduct2<A, B, C> static method
/////////////////////////////////////////////////////////////////////////// /////////////////////////////// ProductN ////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
Implementation
static Decoder<A> forProduct2<A, B, C>(
Decoder<B> decodeB,
Decoder<C> decodeC,
A Function(B, C) fn,
) =>
tuple2(decodeB, decodeC).map((t) => t.apply(fn));