Functor
Trait for types that can be mapped over, and its functions.
trait Functor[m: Type -> Type]SourceTrait for types that can be mapped over.
Instances
- Primitives
Vector- Non-primitives
Chain, DelayList, DelayMap[k], Identity, List, Map[k], Nec, Nel, Option, RedBlackTree[k], Result[e], Validation[e]
Signatures
Module Definitions
<$ is the operator $> with its arguments flipped.
<$$> is the operator <$> with its arguments flipped.
<$> is an operator alias for map.
Replaces the value a in s with Unit preserving the structure of s.
This function is typically used to discard the return value of computing s.