
Yes :D The pointfree f is nicely obfuscated. But if your friend is a perl coder, he should be able to appreciate that.
Honestly, he just wanted a "one-loop-using solution" and was not too interested in anything using Haskell :-)
The standard way to express f, however, is liftM2 (:), so
combinations = (foldr (liftM2 (:)) [[]] .) . replicate -- isn't that boring?
true, it's almost readable At the moment trying to use pointfree is basically pointless for me, more practice is needed. regards Matthias -- __________________________________________________________ ___ __ __ Dipl. Inf. Matthias Guedemann / __\/ _\ /__\ Computer Systems in Engineering / / \ \ /_\ Otto-von-Guericke Universitaet Magdeburg / /___ _\ \//__ Tel.: 0391 / 67-19359 \____/ \__/\__/ __________________________________________________________