[email protected] wrote;
> 
> Sherlock, Ric:
> >eg=: 0 : 0
> >shan't
> >shanghai
> >shank
> >shannon
> >shantung
> >shanty
> >)
> >
> >6...@-.&' '  &> <;._2 eg
> >1 0 0 0 0 1
> 
> There aren't any spaces (' ') in eg if it's defined like this.
> Each word is directly fretted by a LF (not CR) character.

That depends on whether there are spaces in eg between the end of each word and 
the LF! I copied the words from the example data given including the spaces, 
they're there in the email I got from me, but not in the above. Perhaps your 
email client removed them?

 
>    (# = 6:) ;. _2 eg
> 1 0 0 0 0 1
> 

Yes I need to remember that I can use verbs other than < to the left of ;. 
(Thanks to Raul for pointing that out too!)

 
>    (#~  (# = 6:)@>)  <;._2 eg
>    a: -.~  <@(#~ # = 6:) ;. _2 eg
> +------+------+
> |shan't|shanty|
> +------+------+

But since they are all 6 characters long you can unbox to a matrix.

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

Reply via email to