--You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Visit this group at http://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.
q)combs:{[l;c] {raze y,/:'(1+last each y)_\:x}[l;]/[c-1;l]}
q)combs[til 4;2]
0 1
0 2
0 3
1 2
1 3
2 3
q)combs[til 4;3]
0 1 2
0 1 3
0 2 3
1 2 3
q)1 2 3 4 combs[til 4;3]
1 2 3
1 2 4
1 3 4
2 3 4