No, you're 100% right.  Thinko.  Sorry about that.

-Dan

Excuse typos; this message was composed on a phone.

-----Original Message-----
From: "Sherlock, Ric" <[email protected]>

Date: Wed, 29 Jul 2009 11:36:26 
To: Programming forum<[email protected]>
Subject: Re: [Jprogramming] Peculiarity with Link


> From: Dan Bron
>      IsSet =: (-: /:~)*.(-: ~.)*.(1 = #...@$)*.(0 < L.)
> 
> to save yourself some characters.  By the way,  (1 = #@:~.)  is a more
> efficient way to write  (-: ~.)  I believe.  Or was it  (-:_1&|.)  ?
> 

I think (-: ~.) checks that there are no repetitions/duplicates in the set. I 
don't think either of your suggestions will do the same thing. 

I haven't tested to see if it is more efficient but perhaps you were thinking 
of (i.~ -: i:~) ?

----------------------------------------------------------------------
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