xml-basic-0.1.1.3: Basics for XML/HTML representation and processing

Safe HaskellSafe-Inferred

Text.XML.Basic.Utility

Synopsis

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.