MathGroup Archive 2005

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

Search the Archive

Problem with matching.


Can someone tell me why this doesn't match?

F[{x, 2, c}]F[{x, 1, f}] /. F[{___, a_, ___}]F[{___, a_, ___}] :> yes

I'm expecting 'yes' to be returned if any of the list arguments to F[]
contain the same value.  It doesn't match however; what am I doing
wrong?

Thanks,
Joe
--
Josef Karthauser (joe at tao.org.uk)	       http://www.josef-k.net/
FreeBSD (cvs meister, admin and hacker)     http://www.uk.FreeBSD.org/
Physics Particle Theory (student)   http://www.pact.cpes.sussex.ac.uk/
================ An eclectic mix of fact and theory. =================



  • Prev by Date: Re: Area Under Curve (Min Length Interval)
  • Next by Date: Re: Area Under Curve (Min Length Interval)
  • Previous by thread: marching Squares Algorithm
  • Next by thread: Re: Problem with matching.