"Roy A. Crabtree" wrote:
> What would be a more general way to
> many
> scan/reduce to form a fork
> fork apply A
This is possible, of course:
giant_verb =. + 1 :(;:^:_1 (w ']'),~,(w
'pp'),.~":&.>i.@:-&.(-&2)@:#A)
giant_verb
27 pp 26 pp 25 pp 24 pp 23 pp 22 pp 21 pp 20 pp 19 pp 18 pp 17 pp 16 pp
...
I.giant_verb A
2 3 5 7 11 13 17 19 23 27
But it's a bit silly to generate a giant train like that; verbs are meant to be
reused, and since this verb is generated from its argument, it won't be reused.
> I inherently dislike
> catenate A to many
> scan or reduce
Why is catentation less likeable than superflous verb generation?
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm