[Jgeneral] Yet another language-addition proposal--tree Depth

2021-03-10 Thread Arthur Anger
Now that D. and D:have been freed of derivative duties, I suggest that they be 
given tree-depth duties.

I typically envision trees as bearing leaves at multiple "levels", which are, 
however, all labeled as 0 in J.  The numbers of Opens needed to access each of 
them can be termed their "depths", and that value is more often of use to me 
than their J-levels.

Since we often call these containers "trees", the distance from "root" to 
"leaf" would normally be termed "height" (for which H: or h. is available).  I 
tend to think, instead, of nested boxes as "caverns", or "dungeons", requiring 
a specific set of keys (index list) for access to each cell--where there do, 
indeed, be Domain Dragons, waiting to pounce on a mixed-type Open.  (It is 
safest to store only values of compatible type on any given level.)

By analogy to the "level" verbs, D. and D: could become "Depth" (or "DepthOf") 
and "DepthAt" (or "AtDepth").  Since L. and L: are of different valences, a 
single symbol could suffice for their purposes--unless someone has visions for 
eventual related extensions.  The same would be true for depth or height verbs. 
--Art
--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jgeneral] Blocked html messages Re: [Jprogramming] Unboxing problem

2021-03-10 Thread Tom Arneson
I sent this to programming earlier. It never came back to me, and I don't see 
that it ever got to programming. 


> On 03/10/2021 8:13 AM Tom Arneson  wrote:
> 
> 
> ]a=.1 3 8;6 9;2 4;5;0;7
> 
> ┌─┬───┬───┬─┬─┬─┐
> 
> │1 3 8│6 9│2 4│5│0│7│
> 
> └─┴───┴───┴─┴─┴─┘
> 
> ;a
> 
> 1 3 8 6 9 2 4 5 0 7
> 
> 
> 
> > On 03/09/2021 10:51 PM Lippu Esa  wrote:
> > 
> > 
> > Hello everybody
> > 
> > Every now and then even after all these years I stumble into something that 
> > should be simple but I just don't get it. It must be due to my still so 
> > sadly shallow knowledge of J. Please excuse me. I don't post my current 
> > solution here - it has kludge written all over it.
> > 
> > So, I need a verb f that does the following:
> > 
> > ]a=.1 3 8;6 9;2 4;5;0;7
> > ┌─┬───┬───┬─┬─┬─┐
> > │1 3 8│6 9│2 4│5│0│7│
> > └─┴───┴───┴─┴─┴─┘
> > f a
> > 1 3 8 6 9 2 4 5 0 7
> > 
> > Any help will be greatly appreciated.
> > 
> > Esa
> > 
> > Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain 
> > sen vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, 
> > pyydämme sinua poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan 
> > asiasta välittömästi viestin lähettäjälle. Viestin sisällön paljastaminen, 
> > kopioiminen tai muu käyttö on kielletty.
> > 
> > The contents of this message and any attachments are confidential and meant 
> > solely for the intended recipient. If you are not the intended recipient, 
> > we kindly ask that you delete the message and its attachments, and 
> > immediately notify the sender of the email. Disclosing, copying or using 
> > the contents of the message is strictly prohibited.
> > --
> > For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm


Re: [Jgeneral] forums block my email

2021-03-10 Thread chris burke
Curious. I don't see anything wrong with your earlier message, or why
it was not posted by mailman.

In the past your normal messages went through. It might be worth trying again.

If you post your earlier message, then try minor changes to it, e.g.
do not append the message you are responding to.

On Wed, Mar 10, 2021 at 7:02 AM Tom Arneson  wrote:
>
> The J forums seem not to get my emails unless I send them as plain text.
>
> I'm sending this one in plain text as a test.
> --
> For information about J forums see http://www.jsoftware.com/forums.htm
--
For information about J forums see http://www.jsoftware.com/forums.htm


[Jgeneral] forums block my email

2021-03-10 Thread Tom Arneson
The J forums seem not to get my emails unless I send them as plain text.

I'm sending this one in plain text as a test.
--
For information about J forums see http://www.jsoftware.com/forums.htm