map package:basement

Map all element a from a block to a new block of b
Map all elements in a list
An associative operation NOTE: This method is redundant and has the default implementation mappend = (<>) since base-4.11.0.0. Should it be implemented manually, since mappend is a synonym for (<>), it is expected that the two functions are defined the same way. In a future GHC release mappend will be removed from Monoid.
Map each element of a List to a monadic action, evaluate these actions sequentially and collect the results
Map each element of a List to a monadic action, evaluate these actions sequentially and ignore the results
Map all elements in a list with an additional index
Using ApplicativeDo: 'fmap f as' can be understood as the do expression
do a <- as
pure (f a)
with an inferred Functor constraint.
A generic monadic transformation that maps over the immediate subterms The default definition instantiates the type constructor c in the type of gfoldl to the monad datatype constructor, defining injection and projection using return and >>=.
Transformation of one immediate subterm with success
Transformation of at least one immediate subterm does not fail
A generic query that processes the immediate subterms and returns a list of results. The list is given in the same order as originally specified in the declaration of the data constructors.
A generic query that processes one child by index (zero-based)
A generic query with a left-associative binary operator
A generic query with a right-associative binary operator
A generic transformation that maps over the immediate subterms The default definition instantiates the type constructor c in the type of gfoldl to an identity datatype constructor, using the isomorphism pair as injection and projection.
Map over both arguments at the same time.
bimap f g ≡ first f . second g

Examples

>>> bimap toUpper (+1) ('j', 3)
('J',4)
>>> bimap toUpper (+1) (Left 'j')
Left 'J'
>>> bimap toUpper (+1) (Right 3)
Right 4
Monomorphically map the character in a string and return the transformed one