module Util where mapFirst :: (a -> a) -> [a] -> [a] mapFirst f (x:xs) = f x : xs mapFirst _ [] = []