> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:programming-
> [email protected]] Namens Brian Schott
(...)
> NB. I really want to do something more like the following.
> NB. Notice the change of rank on ea2 above vs below.
> NB. The answers are different here, but I will change
> NB. the gerund term to get the same answer in both.
> 
>    a (([: ,@:(~.&>)[:ea0/.~ ea1)([(<"0...@[ea2)"0 2 each])ea0) b
> +-----------+----------+-----+
> |24 29 35 32|14 19 0 17|0 0 0|
> +-----------+----------+-----+
> 

This can be simplified to

   a(([: ~. ea1) (<@[ ea2"0 2 each)  ea0) b
+-----------+----------+-----+
|24 29 35 32|14 19 0 17|0 0 0|
+-----------+----------+-----+


R.E. Boss


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

Reply via email to