Thanks,

Sorry about the unnecessary post.  More reflection was required on my part.

I was doing it backwards.

When y { 9 !: 8  '' didn’t produce what I wanted, I eventually tried

(([: ;/ >:@:i.@:#) ,. ])9!:8 ''

I was showing error number with message, and to get the error number index had 
to be incremented.

This just shows (for my case of sloppy thinking) that always using index origin 
zero ( quadIO <- 0 in APL) makes great sense!
That is over and above other reasons  incl using negative indexing, modulo and 
Boolean values .

Ian


-----Original Message-----
From: General <[email protected]> On Behalf Of bill lam
Sent: Tuesday, 25 February 2020 1:44 PM
To: [email protected]
Subject: Re: [Jgeneral] Incorrect documentation Foreign 13!:8

The array returning by 9!:8 is 1-origin.
   3{.9!:8''
+-------------------+-----+------------+
|attention interrupt|break|domain error|
+-------------------+-----+------------+
   2{9!:8''
+------------+
|domain error|
+------------+

error number 3 is domain error.

Tue, 25 Feb 2020, Ian Shannon написал(а):
> Greetings,
> 
> I'm not sure if this is the correct list. Sorry if that is the case.
> 
> The "result" field in documentation at
> https://code.jsoftware.com/wiki/Vocabulary/Foreigns#m13
> for 13!:8 is
> <quote>
> Error number ({.,y) is raised, with the error text changed to x if 
> given (default error text is (<:y) { 9!:8 '') Signaling error number 
> 55 has the same effect as throw.
> </quote>
> 
> The action involves **incrementing** y not **decrementing** y as shown 
> here.  Hence, text Needs to be changes to  =>
>  
> ...     (>:y) { 9!:8 '')     ...
> 
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> -------------------------- This email is intended for the addressee(s) 
> named and may contain confidential and/or privileged information.
> If you are not the intended recipient, please notify the sender and then 
> delete it immediately.
> Any views expressed in this email are those of the individual sender except 
> where the sender expressly and with authority states them to be the views of 
> the NSW Office of Environment and Heritage.
> 
> PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is intended for the addressee(s) named and may contain confidential 
and/or privileged information. 
If you are not the intended recipient, please notify the sender and then delete 
it immediately.
Any views expressed in this email are those of the individual sender except 
where the sender expressly and with authority states them to be the views of 
the NSW Office of Environment and Heritage.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to