BiFunctor<A, B> class abstract

An BiFunctor type is an type which can map values from two categories into two others.

Implementers

Constructors

BiFunctor()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bimap<A1, B1>({required A1 a(A), required B1 b(B)}) BiFunctor<A1, B1>
Map the values A to A1 and B to B1 with the a and b mappers, respectively.
first<A1>(A1 fn(A)) BiFunctor<A1, B>
Map the left A value into an A1 with the fn mapper, while keeping the right value untouched.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
second<B1>(B1 fn(B)) BiFunctor<A, B1>
Map the right B value into an B1 with the fn mapper, while keeping the left value untouched.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited