5 5 $'abcdef' 
abcde 
fabcd 
efabc 
defab 
cdefa

if you take just the first item, the shape is 5
   $ {. 5 5 $'abcdef' 
5

but if you take an operation that could return a list such as # or }. then the 
shape is a list even if it has one item from the larger list.

   'abcde' (] #~  -:"1 1)  5 5 $'abcdef' 
abcde 
   $ 'abcde' (] #~  -:"1 1)  5 5 $'abcdef' 
1 5 




----- Original Message -----
From: Jon Hough <[email protected]>
To: "[email protected]" <[email protected]>
Cc: 
Sent: Monday, August 11, 2014 7:32:29 PM
Subject: Re: [Jprogramming] jqt listbox

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

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

Reply via email to