[Jprogramming] Finding unique strings in a box

Henry Rich HenryHRich at nc.rr.com
Wed Jun 13 04:15:34 HKT 2007


   unique =: 1 = +/@:=&boxopen

Henry Rich 

> -----Original Message-----
> From: programming-bounces at jsoftware.com 
> [mailto:programming-bounces at jsoftware.com] On Behalf Of Jimmy Miller
> Sent: Tuesday, June 12, 2007 4:10 PM
> To: programming at jsoftware.com
> Subject: [Jprogramming] Finding unique strings in a box
> 
> 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



More information about the Programming mailing list