>>
<<
Ndx
Usr
Pri
Phr
Dic
Rel
Voc
!:
wd
Help
Dictionary
24. Trains
The train of nouns in the English phrase Ontario museum
Egyptian collection represents a single noun. Similarly,
the fork discussed in Section 5
and its exercises permit the use of arbitrarily long trains
of verbs to produce a verb.
Section 15 introduced the use of
trains of adverbs, and of conjunctions together
with nouns or verbs, to represent adverbs.
Conjunctions may also be produced by trains of
adverbs and conjunctions in a manner analogous to forks.
For example, the case diagrammed on the right below
can be used as follows:
cj=:\@\
< cj (+/) a=:i.3 3 c
+-----+-----+-------+ / \
|0 1 2|0 1 2|0 1 2| a1 a2
| |3 5 7|3 5 7| | |
| | |9 12 15| x y
+-----+-----+-------+
(<\)@(+/\) a (*/) cj (+/) a
+-----+-----+-------+ 0 1 2
|0 1 2|0 1 2|0 1 2| 0 5 14
| |3 5 7|3 5 7| 0 60 210
| | |9 12 15|
+-----+-----+-------+
The explicit form of defining conjunctions treated in the
exercises of Section 18 can be
used to produce an equivalent
conjunction CJ as shown below.
s=: 0 : 0
(x.\)@(y.\)
)
CJ=: 2 : s
(*/) CJ (+/) a
0 1 2
0 5 14
0 60 210
>>
<<
Ndx
Usr
Pri
Phr
Dic
Rel
Voc
!:
wd
Help
Dictionary