Henry might have added that L:0 is a useful enough idiom to have been
packaged-up in the z-locale (stdlib.ijs) as: leaf
   type'leaf'
┌──────┐
│adverb│
└──────┘

So...
   $leaf BASE_LIBS
┌─┬─┬┬─┬──┬─┬─┬┐
│4│4││7│11│6│5││
└─┴─┴┴─┴──┴─┴─┴┘

Simple-minded me, I'd have used: each instead of: L:0 (aka leaf)...
   $each BASE_LIBS
┌─┬─┬┬─┬──┬─┬─┬┐
│4│4││7│11│6│5││
└─┴─┴┴─┴──┴─┴─┴┘

(That's cos I knew your noun only had one level of nesting, so it
gives the same answer here.)

But leaf goes right down the nesting tree to the extremities. Here's a
2-level nested noun:
   BASE_N =: 'base' ; ('ctag';'j') ;
'jadetag';'jadecompare';'jregex';'jtask';'z'
   $leaf BASE_N
┌─┬────┬─┬──┬─┬─┬┐
│4│┌─┬┐│7│11│6│5││
│ ││4│││ │  │ │ ││
│ │└─┴┘│ │  │ │ ││
└─┴────┴─┴──┴─┴─┴┘

Whereas...
   $each BASE_N
┌─┬─┬─┬──┬─┬─┬┐
│4│2│7│11│6│5││
└─┴─┴─┴──┴─┴─┴┘
...sees only the 2 atoms of the 2nd level nest.

...Just gilding the lily.


On Thu, Sep 29, 2011 at 11:20 PM, The Geeko <[email protected]> wrote:
> Henry Rich <HenryHRich@...> writes:
>
>>
>> Use
>>
>>    $ L:0 BASE_LIB
>
> Beautiful!  Thank you.
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to