Nice! Btw, foldl1 (and foldr1) do the same as foldl but without a starting value. So 1 + foldl1 (mod . (k +)) [2 .. n] is equivalent.
It seems that only Data.List.permutations is forbidden, therefore this still works!
so what's the problem? do we misunderstand something? I cant get it...
XDDDDDD
up
shorter than mine!
Loading collection data...
Nice!
Btw, foldl1 (and foldr1) do the same as foldl but without a starting value.
So 1 + foldl1 (mod . (k +)) [2 .. n] is equivalent.
It seems that only Data.List.permutations is forbidden, therefore this still works!
so what's the problem? do we misunderstand something? I cant get it...
XDDDDDD
up
shorter than mine!