MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Why Return[] does not work?


> 2) is there better way to implement intersection check?
>
Hi.


In[1]:= Intersection[{a, b}, {c, a}]


Out[1]= {a}

or if you like a True/False answer

In[2]:= Intersection[{a, b}, {c, a}] =!= {}


Out[2]= True


Cheers,

Markus


  • Prev by Date: Re: Directing formatted output to different notebooks
  • Next by Date: exporting graphics as PDF
  • Previous by thread: Re: Why Return[] does not work?
  • Next by thread: Re: Why Return[] does not work?