Vocabulary/CyclicGerund

From J Wiki
Jump to navigation Jump to search

Back to: Vocabulary

Cyclic gerunds

All of the modifiers that apply u repeatedly to y or portions of y allow u to be a gerund.

Such a gerund is a list of verbs to use, with each successive use taking the next verb from u, and wrapping around to reuse the first verb when u is exhausted.

In such a case, u is called a cyclic gerund.

For example,  u/ y inserts u between the items of y.

Thus, when u is the verb +

   +/ 1 2 3 4 5 6
21

is the same as

   1 + 2 + 3 + 4 + 5 + 6
21

But when u is the cyclic gerund  +`* , then

   +`*/ 1 2 3 4 5 6
95

is the same as

   1 + 2 * 3 + 4 * 5 + 6
95

Since a gerund is a noun, a cyclic gerund is recognized when the operand is a noun, in which case it can be called m instead of u .

Cyclic gerunds are allowed with Rank (m"n y) and (x m"n y), Insert (m/ y), Cut (m;.n y) when n is not 3 or _3, Cut (x m;.n y) when n is not 3 or _3, Oblique (/. y), Key (x /. y), Prefix (m\ y), Infix (x m\ y), Suffix (m\. y), Outfix (x m\. y)