This is very nice! /Kip
bill lam wrote:
I want to comment how the read the train
[ {~ [: ? ] $ [: # [
there are 9 (odd number) verbs so the last train is a fork. However
the J dictionary said an J expression is to be read (aloud) from left
to right, eg. 1 * 2 + 3 is read as
multiply 1 to the result of 2 plus 3
rather than from right to left
2 plus 3 and then multiply the result to 1
by the same token, execution of the above tacit form should be read as
(fork)
x {~ result of (cap-fork)
? result of (fork)
y $ result of (cap-fork)
# x
that is
x {~ ? y $ # x
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm