rest-rewrite-0.4.3: Rewriting library with online termination checking
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.REST.Internal.Util

Synopsis

Documentation

removeEqBy :: Eq a => (a -> a -> Bool) -> [a] -> [a] -> ([a], [a]) Source #

removeEqBy f xs ys removes elements from xs and ys such that for each element x removed from xs, an element y is removed from ys such f x y. In other words in the result (xs', ys'), there does not exist any x in xs', y in ys' such that f x y.