[Haskell-cafe] Re: howto tuple fold to do n-ary cross product?
Larry Evans
cppljevans at suddenlink.net
Sun Nov 30 13:25:03 EST 2008
On 11/30/08 12:04, Larry Evans wrote:
[snip]
> The following post:
>
> http://thread.gmane.org/gmane.comp.lib.boost.devel/182797
>
> shows at least one person that would find it useful, at least in
> c++. Of course maybe it would be less useful in haskell.
One thing that maybe confusing things is that the c++ template
code calculated a crossproduct of types, not values. The
haskell code:
cross::[[a]]->[[a]]
calculate a cross product of values.
Sorry if that was unclear. I was trying to use haskell
to guide me in doing something similar with c++ template
metaprogramming.
More information about the Haskell-Cafe
mailing list