
11 Apr
2006
11 Apr
'06
3:57 a.m.
Hello Ross, Monday, April 10, 2006, 8:25:53 PM, you wrote:
I rather like
inits = map ($ []) . scanl (.) id . map (:)
but this is also competitive:
inits = map reverse . scanl (flip (:)) []
it seems that the number of `inits` implementations is close to that's of `fac` :) Haskeller, are you wrote you own version of inits?! -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com