Thank you for interesting approaches, but those aren't what I was expecting.
What I meant was "2 combination N"; compare the # of results of mine
and yours. Sorry if my description wasn't clear.
Following is one more approach I found:
ut=:[: -. >/[EMAIL PROTECTED]
([: > ([:,@ut [EMAIL PROTECTED]) # [: ,@{ 2 $ < ) 'abcd'
aa
ab
ac
ad
bb
bc
bd
cc
cd
dd
2007/2/10, Miller, Raul D <[EMAIL PROTECTED]>:
Here's some other approaches:
,/ f"0/~ 'abcd'
f/&>,{;~ 'abcd'
also (for boxed args):
f/&>,{,&<~ 'abcd'
f/&>,{(;<) 'abcd'
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm