[Jprogramming] Where, oh where have my indices...

R.E. Boss r.e.boss at outlook.com
Thu Oct 28 08:44:58 UTC 2021


Why not define I. as (4 {. {.), which seems quite adequate to me, although it was called "truly horrifying" by Stone http://www.jsoftware.com/pipermail/programming/2021-October/059190.html ?

Your advise wrt #. and #: is perhaps easier to remember than Base and Antibase.

R.E. Boss


-----Original Message-----
From: Programming <programming-bounces at forums.jsoftware.com> On Behalf Of Henry Rich
Sent: woensdag 27 oktober 2021 10:41
To: Programming forum <programming at jsoftware.com>
Subject: Re: [Jprogramming] Where, oh where have my indices...

RE: #:, with multiple dots, creates a list.  #. creates an atom.

Isn't I. defined as (# i.@#)"1?  If you want a different rank you could specify one.  But can you give an example where you would do that?

Henry Rich

On Wed, Oct 27, 2021, 8:33 AM R.E. Boss <r.e.boss at outlook.com> wrote:

> I could not agree more.
> Now I have to remember the ranks of the verbs I use, which I cannot.
> (I even have to look up always some definitions, e.g. the difference 
> between #: and #. , perhaps I should use the mnemonics, like Alex 
> Rufon did, together with f. )
>
>
> R.E. Boss
>
>
>
> -----Original Message-----
> From: Programming <programming-bounces at forums.jsoftware.com> On Behalf 
> Of Elijah Stone
> Sent: woensdag 27 oktober 2021 05:33
> To: programming at jsoftware.com
> Subject: Re: [Jprogramming] Where, oh where have my indices...
>
> I think that primitives should try to handle as highly-ranked an array 
> they can.  I find it much more simple and regular to explicitly lower 
> the rank of a verb than to recreate the high-rank version of the 
> algorithm myself.
>
> (...)
>
>   -E
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list