[Haskell-cafe] Combination-lock problem

Lyle Kopnicky lists at qseep.net
Thu Aug 12 15:06:43 EDT 2004


Even shorter:

c=mapM(\k->[0..k])

- Lyle

Fritz Ruehr wrote:

> Well, as far as that goes, we can shave off a little bit (around 7%) 
> this way:
>
>   combs = mapM (\k->[0..k])
>
> (As a bonus, it's even a bit more cryptic/symbolic, in the fine 
> tradition of APL one-liner character-shavings.)
>
> But who's counting? :) :) :)
>
>   --  Fritz Ruehr



More information about the Haskell-Cafe mailing list