(2#,:2 2 1)}"1 _

} is an adverb.

The verb here is the MONAD (2#,:2 2 1)} . You can give it a rank, but there will be only one rank (_ here, because "1 _ is equivalent to "_ 1 _).

There is no way to have the rank apply to the m part of m} (Here, 2#,:2 2 1).

Henry Rich

On 8/12/2015 1:08 AM, David Lambert wrote:
I don't understand this rank error, the only unsatisfying explanation I
think of is that amend works in place.


    2 2 1{"0 1 A  NB. goal
1.4 55 0.059

    2#,:2 2 1
2 2 1
2 2 1

    (;          $)@:|: A
+------------+---+
|  0  0 0.034|4 3|
|  1 25 0.059|   |
|1.4 55 0.094|   |
|  2 85     0|   |
+------------+---+
       2 2 1}"1 _ |:A
1.4 55 0.059

    (2#,:2 2 1)}"1 _ |:A
|rank error
|       (2#,:2 2 1)}"1 _|:A

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

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

Reply via email to