[Haskell-cafe] Re: howto tuple fold to do n-ary cross product?

Martijn van Steenbergen martijn at van.steenbergen.nl
Sun Nov 30 16:07:26 EST 2008

Larry Evans wrote:
> The haskell code:
>   cross::[[a]]->[[a]]
> calculate a cross product of values.

Now if you allow the elements of that function's argument list to be 
possibly infinite lists and you still want to eventually yield every 
possible cross product, you get a very nice problem...


More information about the Haskell-Cafe mailing list