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

Safe HaskellSafe
LanguageHaskell98

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.