On 2007-10-12, Dan Weston <[EMAIL PROTECTED]> wrote:
> applyNtimes f n | n > 0     = f . applyNtimes f (n-1)
>                 | otherwise = id

Why not some variant of:

applyNtimes f n = foldl' (.) id (replicate n f)

-- 
Aaron Denney
-><-

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to