maplist : (a -> b) -> List(a) -> List(b) maplist _ [] = [] maplist f (a :: as) = f a :: (maplist f as)