On 5/23/07, Dan Bron <[EMAIL PROTECTED]> wrote:
"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.
More to the point: generate a single functor that will do the hhull thang:
many fork A
I inherently dislike
> catenate A to many
> scan or reduce
Why is catentation less likeable than superflous verb generation?
The only element in the train that is NOT a single factor is A.
the only position that would EVER have a non-unitary facotr would be the
single item catenated.
As such: the catenated element is in and of itself not of the same "type"
of element
the others are, and no other position in the train,list, or array will even
have those
characteristics.
As such, it is NOT the same _type_ (programming language) of element as
the others are, and the
natural "dee" structure implied is of the form
[many|A]
not
[many1|...|many i|...|many N| A]
...at least to my naive hind brain.
nothing wrong with catenate: just not the same semantics on the element A as
on the rest of the train.
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
--
Roy A. Crabtree
UNC '76 gaa.lifer#
(For TN contact, email me to set up a confirmed date/time)
[When you hear/read/see/feel what a yehudi plays/writes/sculpts/holds]
[(n)either violinist {Menuhin} (n)or writer {"The Yehudi Principle"} (n)or
molder (n)or older]
[you must strive/think/look/sense all of it, or you will miss the meanings
of it all]
[EMAIL PROTECTED] Forwards only to:
[EMAIL PROTECTED] CC: auto to:
[EMAIL PROTECTED] Be short < 160 chars cuts off; currently
offline
[EMAIL PROTECTED] CC: auto to ^
http://www.authorsden.com/royacrabtree
http://skyscraper.fortunecity.com/activex/720/resume/full.doc
--
(c) RAC/IP, ARE,PRO,PAST
(Copyright) Roy Andrew Crabtree/In Perpetuity
All Rights/Reserved Explicitly
Public Reuse Only
Profits Always Safe Traded
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm