[Haskell-cafe] Established names for a couple of list functionals?

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Tue Apr 6 17:38:18 EDT 2010


Stephen Tetley <stephen.tetley at gmail.com> writes:
> -- 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 at gmail.com
IvanMiljenovic.wordpress.com


More information about the Haskell-Cafe mailing list