lens-3.6.0.3: Lenses, Folds and Traversals

Control.Lens.Combinators

Description

Synopsis

(<$!>) :: Monad m => (a -> b) -> m a -> m bSource

A strict version of (<$>) for monads.

<$>

>>> (+1) <$!> [1,2,3,4] [2,3,4,5]

>>>

(+1) <$!> [1,2,3,4]

(<$!) :: Monad m => b -> m a -> m bSource

A strict version of (<$) for monads.

<$

>>> () <$! [1,2,3,4] [(),(),(),()]

() <$! [1,2,3,4]

(<&>) :: Functor f => f a -> (a -> b) -> f bSource

Infix flipped fmap.

(<&>) = flip fmap

<&>

flip

fmap