MathGroup Archive 1999

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

Search the Archive

Re: equaltity of lists


Drago Ganic wrote:
> 
> Why don't I get an answer (False) when I ask Mathematica
> 
>     {a,b}=={b,a}
> 
> like the one I get with
> 
>     {1,2}=={2,1}
>     False

Hi Drago,

SameQ will do the job: 
{a, b} === {b, a}
False

{a, b} === {a, b}
True


Regards,
Harald

-- 
Harald Giese
Email: giese at dkrz.de
> NEUE TELEFON-NUMMER | NEW PHONE-NUMBER <
Phone: +49 (0)40 42838 5796; Fax: +49 (0)40 5605724
Institut fuer Meereskunde der Universitaet Hamburg
(Institute of Oceanography of the University of Hamburg)
Troplowitzstrasse 7, D-22529 Hamburg


  • Prev by Date: Re: equaltity of lists
  • Next by Date: Re: HypergeometricPFQ Question
  • Previous by thread: Re: equaltity of lists
  • Next by thread: Re: equaltity of lists