CNT =: 3 : 'y [ COUNTER =: >: COUNTER'

 COUNTER [ CNT@{. 1 2 3 [ COUNTER =: 0

0

   COUNTER
1

workaround

3 :'COUNTER' [ CNT@{. 1 2 3 [ COUNTER =: 0

1

J is being too smart in short circuiting constant [ ....at console (jqt)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to