
9 Feb
2005
9 Feb
'05
8:37 a.m.
On Wed, Feb 09, 2005 at 01:33:37PM +0000, Malcolm Wallace wrote:
Here's another one. I'm not sure what to call it, since 'permutation' means something subtly different.
-- Given a list of alphabets, return all possible strings with one -- symbol chosen from each alphabet respectively. permute :: [[a]] -> [[a]] permute [] = [[]] permute (xs:xss) = [ f:fs | f <- xs, fs <- permute xss ]
sequence?