Permutations: Difference between revisions
→{{header|Haskell}}: Applied Ormolu, tidied slightly in terms of second
(→{{header|Quackery}}: third time lucky, I hope!) |
(→{{header|Haskell}}: Applied Ormolu, tidied slightly in terms of second) |
||
Line 4,038:
A serialized version:
{{Trans|Mathematica}}
<lang haskell>
permutations :: [a] -> [[a]]
permutations =
in foldr
)
[[]]
main :: IO ()
|