Functor<A> class
abstract
An Functor type is an type which can map (with fmap<B>) values from one category (Functor<A>) to another category (Functor<B>).
Tecnically, as the Functor type wraps the value, this is an Endofunctor, because it maps values from the same category (Functor).
- Implementers
Constructors
- Functor()
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
-
fmap<
B> (B fn(A)) → Functor< B> -
Maps the value contained in this Functor from the category
A
to the categoryB
withfn
and wraps the result inside an Functor<B>. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited