Hmm...
({.% */@}.) 1 2 3 4 5
would actually work if we replaced 1 2 3 4 5 with an arbitrary
different list of numbers.
It would not work, though, if we replaced % with a different verb.
Thanks,
--
Raul
On Thu, Oct 3, 2019 at 5:22 PM Nollaig MacKenzie
wrote:
>
> I'm guessing
>
> %*/2 3 4
I'm guessing
%*/2 3 4 5
wouldn't count
On 2019.10.02 23:43:40, you,
the extraordinary Skip Cave, spake thus:
>
> I can write:
> 1%(2%(3%(4%5)))
>
> 1.875
>
>
> Using insert, I can simplify:
>
> %/1 2 3 4 5
>
> 1.875
>
>
> Now I can write:
>
> (((1%2)%3)%4)%5
>
> 0.008
Thanks Roger. I have run into this issue a couple of times, and I knew J
must have a solution. I just need to remember the double reverse scheme
(reverse the noun order & reverse the dyad execution).
Skip
On Thu, Oct 3, 2019 at 12:18 AM Roger Hui wrote:
>%~/ |. 1 2 3 4 5
> 0.0083
>
>
>
%~/ |. 1 2 3 4 5
0.0083
On Wed, Oct 2, 2019 at 9:44 PM Skip Cave wrote:
> I can write:
> 1%(2%(3%(4%5)))
>
> 1.875
>
>
> Using insert, I can simplify:
>
> %/1 2 3 4 5
>
> 1.875
>
>
> Now I can write:
>
> (((1%2)%3)%4)%5
>
> 0.00833
>
>
> How can I use insert to simplify this?
I can write:
1%(2%(3%(4%5)))
1.875
Using insert, I can simplify:
%/1 2 3 4 5
1.875
Now I can write:
(((1%2)%3)%4)%5
0.00833
How can I use insert to simplify this?
Skip Cave
--
For information about J forums