The shape of an unboxed item accounts for the outer as well as the inner
shape, eg:
   $><'hi'   NB. unboxing a scalar: resulting shape is '',2
2
   $>,<'hi'   NB. unboxing a one-element vector
1 2

NB. So,
   $>3$<'hi'
3 2
   $>3 4$<'hi'
3 4 2



On Mon, Aug 11, 2014 at 7:32 PM, Jon Hough <[email protected]> wrote:

> Thanks for replying.
> "Were you expecting a different shape or just wondering why it's 1 5?It's
> 1 5 because it's the list of items that match the pattern icons"
>
> Well, I was expecting the shape to be 5.i.e. If I have a list of boxed
> strings, and I take the first item and then unbox it, I assumed the shape
> would be the length of the string, in this case 5. I'm not sure where the
> extra dimension came from.
> > Date: Mon, 11 Aug 2014 07:35:31 -0400
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: [Jprogramming] jqt listbox
> >
> > > wd 'set lb items ',  (> (4 : 'y,LF,x') each/ (0{"1 data))
> > >
> >
> > The 4 : 0 should be made tacit if you go this path. Should be eady by
> hand
> > or with 13 : 0
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to