Yes. The documentation describes exactly what's happening. The rank 1 is
the key making each number an item. In this case it is the equivalent to
(<"1) by itself. So, is it a good idea to use ({) in place of (<"1) when
wanting to box something rank 1? It's shorter and simpler to read. But what
about optimization? It seems to me that it would be a neat example in NuVoc.On Sun, Jul 22, 2018 at 4:42 PM <[email protected]> wrote: > Henry Rich wrote: > > As I read Ye Dic, ({ i. 2 4) should give the same result as > > ({ <"1 i. 2 3). > > I never thought I'd have to say this to *you* but: > note that Catalogue { has rank 1. > > Hence there should not be any interaction between the colors in > > { 'black' ,: 'green' > > nor in the low / high vectors in > > { i. 2 4 > > > To me, Catalogue { works just fine as-is. In particular, the DoJ > also covers the "open argument" case as it stands. > > { 'black' NB. the same as: { 'b' ; 'l' ; 'a' ; 'c' ; 'k' > +-----+ > |black| > +-----+ > > Quote: > > {y forms a catalogue from the atoms of its argument, its shape > being the chain of the shapes of the opened items of y . The > common shape of the boxed results is $y . > > Martin > > > [PS 1: the empty shape of the resulting box > > $ { 'black' > > > happens to be a concatenation ("chain") of the five empty letter shapes > here. > > PS 2: Those reading down to here may also be interested in this > short exercise: > > What's the result of > { 'ht' ; 'ao' ; ,. 'gtw' > ? > > (Just follow the instructions above :-) > ] > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
