Perhaps you pressed send too early, David.
Anyway, FWIW, I just used
movedata =. > LF cut y }.~ {. I. y E.~ 'move'
moves =. >".each 1 3 5{"1 ' 'cut "1 movedata
But your approach is a nicer way to remove the syntactic sugar.
Mike
On 06/12/2022 23:39, David Lambert wrote:
I found that with appropriate definitions and setup, to evaluate the
stack operations with do (".).
move 1 from 2 to 1
move 3 from 1 to 3
move 2 from 2 to 1
move 1 from 1 to 2
for example, from=:to=: ,
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm