Roger Hui wrote:
>
> When a facility can be provided as an adverb or a verb,
> it's better to provide it as a verb because a verb is
> more easily combined with conjunctions and adverbs.
> e.g. I can say fib4"r or fib4&.> etc. Not so with the
> adverb fib5 .
>
The way conjunctions are implemented now is as a thinly
disguised pair of parametric adverbs:
u & v === u (& v) === v (u &)
verb conj verb === verb adverb
For example:
fib4"r === fib4("r)
fib4&.> === >(fib4&)
There is also adverb fib6:
fib6=:"_(`0:)(;@:{&(1;0 1)^:)(+/"1@:)
10 fib6 0
55
((i.2 10) fib6) 0
0 1 1 2 3 5 8 13 21 34
55 89 144 233 377 610 987 1597 2584 4181
--
View this message in context:
http://www.nabble.com/Silver-ratio%2C-geometrically-interpreted-tp23638554s24193p23670528.html
Sent from the J Chat mailing list archive at Nabble.com.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm