Correction: parts=: (] #~ (%~ [EMAIL PROTECTED]) = +/"[EMAIL PROTECTED]) [: #:@i. 2&^&.<: pieces=: [ ([EMAIL PROTECTED]@[ */ ]) parts combos=: (+"1/ #~&(,/) 0 = [: +/"1 *"1/)/@pieces
For example 4 combos 8 (My last message left out a crucial element of this solution). -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
