Apology--I have just uploaded a correction to CTScan.ijs, to fix a late 
"improvement" which derailed processing of an empty argument (as in the 
earlier-run example).
Note--The verb name, chosen for elegance and to minimize conflict, is also 
supplied with a more convenient nickname, cts, which appears in only one other 
usage in a wiki search.
--Art

> On 14Nov 2020, at 7:00 AM, [email protected] wrote:
> 
> Send General mailing list submissions to
>       [email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       http://jsoftware.com/mailman/listinfo/general
> or, via email, send a message with subject or body 'help' to
>       [email protected]
> 
> General information about the Jsoftware mailing lists is at:
> 
>   https://code.jsoftware.com/wiki/System/Forums
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of General digest..."
> 
> 
> Today's Topics:
> 
>   1. Finding details of value structure (Arthur Anger)
>   2. Re: Finding details of value structure
>      ('robert therriault' via General)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 14 Nov 2020 00:15:29 -0500
> From: Arthur Anger <[email protected]>
> To: J-General <[email protected]>
> Subject: [Jgeneral] Finding details of value structure
> Message-ID: <[email protected]>
> Content-Type: text/plain;     charset=utf-8
> 
> In August I wrote, 'One problem I have encountered is "invisible" leading 
> unit axes.'  Raul Miller responded with, '... Here's a cruder mechanism, 
> which borrows from the apl2 display mechanism -- stuffing the shape of each 
> array into its formatted representation.'  Bob Therriault then suggested his 
> addon 'jig' and Henry Rich's 'dissect', which display structural information 
> when operating in the JQT environment.
> 
> Not wishing to spend a lot of time learning another layer of environment, I 
> spent a lot of time instead on embellishing Raul's "mechanism", while gaining 
> experience in the use of recursion--and noting the often disruptive 
> prevalence of "invisible" leading unit axes, frequently encountered after 
> opening boxed values.
> 
> My script now resides in File:CTScan.ijs, offering a computerized tomographic 
> scan of all the internal components of a J data value.  It reports atop each 
> subarray its depth, level, shape, and datatype.  It offers options to 
> constrain analysis to limited portions of the components, and to vary the 
> format of the display.  Additionally, the content-formatting routine, which 
> performs some modest compaction in the display of certain types of 
> higher-rank or nested arrays, can be called independently by other 
> applications.
> 
> Here are two brief examples;  a greater variety will be found in the script's 
> 'help' note:
> 
>   NB. Much of this structure is unclear in the default display, unlike the 
> scan--
>   ] samp=: ((< (^ 1) , o. 1) ; 0 3 $ 'abc') ,: a: ; (<< i. 1 1 1 2)
> ┌─────────────────┬─────┐
> │┌───────────────┐│     │
> ││2.71828 3.14159││     │
> │└───────────────┘│     │
> ├─────────────────┼─────┤
> │┌┐               │┌───┐│
> │││               ││0 1││
> │└┘               │└───┘│
> └─────────────────┴─────┘
>   1 1 1 CTScan samp
> ┌0\2: 2 2bx────────────────────────────┐           
> │┌1\1: bx──────────┐ ┌1\0: 0 3ch┐      │           
> ││┌2\0: 2fl───────┐│ └──────────┘      │           
> │││2.71828 3.14159││                   │           
> ││└───────────────┘│                   │           
> │└─────────────────┘                   │           
> │┌1\1: bx───┐        ┌1\1: bx─────────┐│           
> ││┌2\0: 0bl┐│        │┌2\0: 1 1 1 2in┐││           
> │││        ││        ││0 1           │││           
> ││└────────┘│        │└──────────────┘││           
> │└──────────┘        └────────────────┘│           
> └──────────────────────────────────────┘           
>   0 0 0 CTScan samp
> ┌0\2: 2 2bx────────────────────                    
> ┌1\1: bx────────┌1\0: 0 3ch                        
> ┌2\0: 2fl───────└──────────                        
> │2.71828 3.14159                                   
> └───────────────                                   
> ┌1\1: bx─       ┌1\1: bx───────                    
> ┌2\0: 0bl       ┌2\0: 1 1 1 2in                    
> │               │0 1                               
> └────────       └──────────────                    
> 
> Please send bug reports directly to [email protected].  Complaints and 
> suggestions for possible improvements, however, may deserve wider discussion. 
>  Thanks.
> --Art
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 13 Nov 2020 21:39:56 -0800
> From: "'robert therriault' via General" <[email protected]>
> To: [email protected]
> Subject: Re: [Jgeneral] Finding details of value structure
> Message-ID: <[email protected]>
> Content-Type: text/plain;     charset=us-ascii
> 
> Very cool Arthur,
> 
> I have downloaded the file from the J wiki. I plan to have a look in more 
> detail over the weekend, because I am really interested in how you approached 
> the problem.
> 
> Full marks for taking on this sort of a project!
> 
> Cheers, bob
> 
>> On Nov 13, 2020, at 21:15, Arthur Anger <[email protected]> wrote:
>> 
>> ((< (^ 1) , o. 1) ; 0 3 $ 'abc') ,: a: ; (<< i. 1 1 1 2)
> 
> 
> 
> ------------------------------
> 
> Subject: Digest Footer
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
> 
> ------------------------------
> 
> End of General Digest, Vol 181, Issue 3
> ***************************************

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to