Applies the given function to the value contained in this context, returning the result of the function lifted into the same context.
Applies the given function to the value contained in this context, returning the result of the function lifted into the same context.
Given the functions:
id
: T => T
// Identity function, (o: T) => o
g
: T => U
f
: U => V
Implementations of this trait obey the following laws:
functorProxy.map(id)
===
functorProxy
functorProxy.map(g).map(f)
===
functorProxy.map(f compose g)
Proxy for algebraic structure containing a mapping method that obeys laws of identity and composition.
A
FunctorProxy
instance wraps an object that in some way behaves as aFunctor
.