[Haskell-cafe] f^n for functional iteration

Doug McIlroy doug at cs.dartmouth.edu
Tue Dec 10 16:45:11 UTC 2013


Is there a trick whereby the customary notation f^n for iterated
functional composition ((\n f -> foldl (.) id (replicate n f)) n f) can
be defined in Haskell?

Doug McIlroy


More information about the Haskell-Cafe mailing list