inits

Simon Marlow simonmarhaskell at gmail.com
Tue Apr 11 05:45:33 EDT 2006


... and the conclusion is?

I quite like Ross's version

   inits = map reverse . scanl (flip (:)) []

and it wins at least on one of the tests.

Cheers,
	Simon


More information about the Libraries mailing list