Hello Terrence;
My guess is that the sentence is parsed as follows:
( (+/@:+)/"1 ) w NB. (v a c v a c n) <-> ((((v a) c v) a) c n)
So:
( +/ @: (+/"1) )
would work.
hth,
Terrence Brannon wrote:
I'm not sure why I can't get the sum of the row-sum here:
w
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
<"1 w
┌─────────┬─────────┬─────────┬─────────┐
│1 1 1 1 1│1 1 1 1 1│1 1 1 1 1│1 1 1 1 1│
└─────────┴─────────┴─────────┴─────────┘
+/"1 w
5 5 5 5
+/ @: +/"1 w
5 5 5 5
( +/ @: +/"1 ) w
5 5 5 5
+/ ( +/"1 w ) NB. this works but why cant I get @: to work?
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
>: ...
------------------------------------------------------------------------
|\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED] |
|\ | | The only real problem with APL is that
BSc(Math) UNBF'83 | it is "still ahead of its time."
Sapere Aude | - Morten Kromberg
| Looking for a whip-smart APL developer?
Send me a note.
Natural born APL'er | mailto:[EMAIL PROTECTED]
-----------------------------------------------------(INTP)----{ gnat }-
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm