Dan Bron wrote:
> I don't know what swap does in Forth

Using the right hand edge of a list as top of stack:

   swap=: _2 (}. , |[EMAIL PROTECTED]) ]
   swap i. 3
0 1 3 2

-- 
Raul


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to