But this does:
tt =: 3 : 0
<\ y
:
(<: x) { <\ y
)
tt >: i.6
┌─┬───┬─────┬───────┬─────────┬───────────┐
│1│1 2│1 2 3│1 2 3 4│1 2 3 4 5│1 2 3 4 5 6│
└─┴───┴─────┴───────┴─────────┴───────────┘
2 4 5 tt >: i.6
┌───┬───────┬─────────┐
│1 2│1 2 3 4│1 2 3 4 5│
└───┴───────┴─────────┘
tt"1 n
┌─┬───┬─────┐
│1│1 2│1 2 3│
├─┼───┼─────┤
│1│1 3│1 3 2│
├─┼───┼─────┤
│2│2 1│2 1 3│
├─┼───┼─────┤
│2│2 3│2 3 1│
├─┼───┼─────┤
│3│3 1│3 1 2│
├─┼───┼─────┤
│3│3 2│3 2 1│
└─┴───┴─────┘
Am 24.06.20 um 01:58 schrieb 'robert therriault' via Programming:
Hey Skip,
f =. <\
should work if you are willing to do f"1
or f1=. <\"1 if you want to lock in the rank.
Is that what you are looking for?
Cheers, bob
On Jun 23, 2020, at 16:50, Skip Cave <[email protected]> wrote:
]n=.>:perm 3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
----------------------
mail written using NEO
neo-layout.org
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm