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.
(# = 6:) ;. _2 eg
1 0 0 0 0 1
and
(#~ (# = 6:)@>) <;._2 eg
a: -.~ <@(#~ # = 6:) ;. _2 eg
+------+------+
|shan't|shanty|
+------+------+
Martin
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm