Skip to content

Codec2Ops<A, B>

extensionCodec2Ops<A, B>onRecord

Provides a product operation on a 2-tuple of (String, Codec) pairs.

Methods

product() extension

Codec<C>product<C>(CFunction(A,B)apply,RecordFunction(C)tupled,);

Available on Record, provided by the Codec2Ops<A, B> extension

Implementation
dart
Codec<C> product<C>(
  Function2<A, B, C> apply,
  Function1<C, (A, B)> tupled,
) => ($1.kv, $2.kv).product(apply, tupled);