how about this? unique =: (1: = ])@+/@(<@[ = ])
s =.;:'alpha beta gamma delta gamma' 'gamma' unique s 0 'delta' unique s 1 On 6/12/07, Jimmy Miller <[EMAIL PROTECTED]> wrote:
If I have a box of strings such as this: box =. 'ab';'ab';'bc' What's the best way to tell if a string within the box is unique? For example: 'bc' unique box NB. Should return true 'ab' unique box NB. Should return false -- <a href="http://www.spreadfirefox.com/?q=affiliates&id=153516&t=1"><textarea rows="3" cols="40">Get Firefox!</a> ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
-- - michael dykman - [EMAIL PROTECTED] - All models are wrong. Some models are useful. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
