[erlang-questions] omaha poker hand permutations

Joel Reymont joelr1@REDACTED
Tue Aug 16 16:27:43 CEST 2011

The problem can be reduced to the following:

5> L3 = ["AD", "AH", "AS", "QS"].

6> L4 = [ {A, B} || A <- L3, B <- L3, A /= B].                            

Note the duplicate pairs of AD, AH and AH, AD.

Can these be eliminated inside the list comprehension itself?

	Thanks, Joel

- for hire: mac osx device driver ninja, kernel extensions and usb drivers
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont

More information about the erlang-questions mailing list