Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Why Return[] does not work?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg109470] Re: Why Return[] does not work?
  • From: "M.Roellig" <markus.roellig at googlemail.com>
  • Date: Wed, 28 Apr 2010 02:00:52 -0400 (EDT)
  • References: <hr6ihp$2f8$1@smc.vnet.net>

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