
6 Apr
2010
6 Apr
'10
5:38 p.m.
Stephen Tetley
-- first element special -- anacrusisMap :: (a -> b) -> (a -> b) -> [a] -> [b] anacrusisMap _ _ [] = [] anacrusisMap f g (a:as) = f a : map g as
I've done something like this, and gave it the extremely imaginative name of firstOthers. But it was an internal non-exported function. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com