This is a feature. {. returns the first item (or fill), since
i.3 is rank-1, its items are scalars.
Пт, 22 апр 2016, jprogramming написал(а):
> (1 {. ]) is not the same as {.
>
> $ 1 {. i.3
>
> 1
>
> #@$ {. i.3
> 0
> --
> For
There is a reason why the exercises 2 and 3 (described in [0]) are
difficult. The Toolkit adverbs , hg and adv, facilitate the production of
adverbs which are capable to render whatever explicit adverbs can; however,
when the explicit adverbs produce verbs (e.g., u rscan) and the arguments
of thes
It's not a bug.
On Fri, Apr 22, 2016 at 1:30 PM, 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> (1 {. ]) is not the same as {.
>
> $ 1 {. i.3
>
> 1
>
> #@$ {. i.3
> 0
> --
> For information about J forum
(1 {. ]) is not the same as {.
$ 1 {. i.3
1
#@$ {. i.3
0
--
For information about J forums see http://www.jsoftware.com/forums.htm
Pascal wrote:
> 0 0 1 1 1 (2 <\ ])\. i.5
Then:
> sorry, key is /. not \.
Yep! But to address this:
> Something else happens. (called 5 times, in pattern that is hard to
> understand).
The tally of 0 0 1 1 1 (i.e. # 0 0 1 1 1) is 5, and the dyad f\. has a left
rank of 0, so (2 <\ ]) is invoke
sorry, key is /. not \.
- Original Message -
From: 'Pascal Jasmin' via Programming
To: Programming Forum
Sent: Friday, April 22, 2016 10:46 AM
Subject: [Jprogramming] key misunderstanding?
0 0 1 1 1 (2 <\ ])\. i.5
for the inner function (2 <\ ]) I'd expect that it would be called t
0 0 1 1 1 (2 <\ ])\. i.5
for the inner function (2 <\ ]) I'd expect that it would be called twice with 0
1 and 2 3 4 argumnents.
Something else happens. (called 5 times, in pattern that is hard to understand).
--
For information