Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- updateAppend :: (a -> Bool) -> a -> (a -> a) -> [a] -> [a]
- updateAppend' :: (a -> Bool) -> a -> (a -> a) -> [a] -> [a]
Documentation
updateAppend :: (a -> Bool) -> a -> (a -> a) -> [a] -> [a] Source #
Needs break
from utility-ht in order to be as lazy as updateAppend'
.
updateAppend' :: (a -> Bool) -> a -> (a -> a) -> [a] -> [a] Source #
Apply f
to the first element, where p
holds.
If no such element exists, append the default value deflt
to the list.