DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: N-ary Cartesian Products (CROSS JOIN)  (Read 4,055 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
N-ary Cartesian Products (CROSS JOIN)
« on: September 16, 2012, 03:54 PM »
I'm working on a project, and needed to do a Cartesian Product (CROSS JOIN), and found this:

http://www.interact-sw.co.uk/iangblog/2010/07/28/linq-cartesian-1

It's got an excellent treatment of how to do Cartesian Products in C#.

I opted for one of the object based array solutions as it suits what I need better. But there are more powerful solutions available.

Anyways, if you need a Cartesian Product in C#, it nails it.
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Original address: https://www.donationcoder.com/forum/index.php?topic=32255.0