I agree that except for forks, tacictly defined
verbs are nicely read and explained from left to right. And
many smart people can even conceive of new verbs in that
order. But for me I usually have to start defining verbs
from right to left, especially because in practice I find
that the results of one verb require another verb with
careful attention to rank. I usually spend considerable time
teasing previous results into a shape desired for the next
verb on the left, but then I have to enter that verb on the
left of an existing phrase which is simple to do with pencil
and paper, but requires left arrowing over the whole
construction (in a nonGui console) to reposition the cursor
after repeating the existing code. So I'm thinking that a
version of my verb rc and the long other verb (that I have
now named "exp0") could be somehow made into a shortcut
keystroke for use when I am in one-line definition mode. I
am sure it would take some time to learn this system and
would lead to some dyslexia -- possibly permanent, so do not
try this without asking your doctor first <grin>.

exp0=:13 :'"."1;:^:_1"1(([:mt&,[:,&mt[:rc[:}:[:}.])^:(mt&-:@{.))each@:;:;.1 y.'
exp0=:[:"."1[:;:^:_1"1([:mt&,[:,&mt[:rc[:}:[:}.])^:(mt&-:@{.)each@:;:;.1

 On Tue, 11 Apr 2006, Oleg Kobchenko wrote:

+ That's an interesting point: vocalizing forks and hooks.
+ As in
+   avg=: +/ % #
+ Average is the quotient of sum and length.
+
+ Longer fork train conforms with this convention,
+    (32 + 9r5 * ]) 36.6
+ 97.88
+ Fahrenheit is sum of 32 and product of 9/5 and the argument.
+
+ Whereas in capped fork, there is no "first part and",
+ just "of the other part". As in
+   freq=: [: % #
+ Frequency is the reciprocal of [.. and] length.
+ (We omit the brackated part.)
+
+ Now with that convention, we read
+   f=: [: %: [: +/ *:
+ f is root of sum of squares.
+
+ --- [EMAIL PROTECTED] wrote:
+
+ > Possible this illustrates the "right to left" thinking a little more:
+ >
+ >    f=: [: %: [: +/ *:
+ >
+ >    f 3 4
+ > 5
+ >
+ > Linda
+ >
+ > In a message dated 4/10/2006 7:56:55 PM Eastern Daylight Time,
+ > [EMAIL PROTECTED] writes:
+ >
+ >
+ > >   Length is "root" of the "sum" of "squares"
+ > >
+ > >    %: +/ *: 3 4
+ > > 5
+ > >
+ > >    len=: %: @ +/ @: *:
+ > >    len 3 4
+ > > 5
+ > >
+ > >    or "sum" "under" "square"
+ > >
+ > >    +/ &.: *: 3 4
+ > > 5
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to