| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Control.Flower.Functor.Lazy
Description
Documentation
over :: (a -> b) -> a -> b Source #
Alias for apply, for readability (especially when teaching)
>>>lift (+1) `over` Just 0Just 1
>>>Just 0 $> (+1) $> (+2)Just 3
>>>(*2) <$ ([1,2,3] $> (+1))[4,6,8]
>>>(+8) .> (*2) <$ Just 0Just 16
>>>(*3) <. (+8) <$ Just 0Just 24