The issue is the rank of the @. derived verb
No additional problem is introduced through the use of a hook here.
Thanks,
--
Raul
On Thu, May 25, 2023 at 2:05 PM Martin Kreuzer wrote:
>
> In addition, I don't understand why
>
> f=: (1:)`(* [: $: <:) @. *
>
> shouldn't suffice, compared to
In addition, I don't understand why
f=: (1:)`(* [: $: <:) @. *
shouldn't suffice, compared to
f=: (1:)`(] * [: $: <:) @. *
as
(* [: $: <:) y
looks to me like a regular hook.
-M
At 2023-05-25 18:33, you wrote:
This is odd.
According to
This is odd.
According to https://code.jsoftware.com/wiki/Vocabulary/atdot f should
have rank 0 (since v is * here).
But, when I redefine f as
f=: 1:`(] * [: $:&([echo) <:)@.*
I see that when (f 2 3 5 7 11) is executed, f is being treated as some
other rank. This does not occur for (f 2 3 5
rank error confirmed
JVERSION
Engine: j903/j64/linux
Beta-w: commercial/2021-12-05T18:24:21
Library: 9.03.08
Platform: Linux 64
Installer: J903 install
Am 25.05.23 um 20:12 schrieb Martin Kreuzer:
Dear all -
Thought I had succeeded in deducing step by step the tacit verb for
factorial,
Dear all -
Thought I had succeeded in deducing step by step the tacit verb for factorial,
f=: 1:`(] * [: $: <:)@.*
when I encountered this:
f=. 1:`(] * [: $: <:)@.*
f 2 3 5 7
2 6 120 5040
f 2 3 5 7 11
|rank error in f, executing monad $:
| f 2 3 5 7 11
In contrast this