MathGroup Archive 2001

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

Search the Archive

Matching on Arguments of Flat Functions ...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg29569] Matching on Arguments of Flat Functions ...
  • From: Detlef Mueller <dmueller at mathematik.uni-kassel.de>
  • Date: Mon, 25 Jun 2001 20:42:24 -0400 (EDT)
  • Organization: University of Kassel - Germany
  • Sender: owner-wri-mathgroup at wolfram.com

Little Session:

"
In[1]:= MatchQ[f[1, 2], f[l_Integer, r___]]
Out[1]= True

In[2]:= SetAttributes[f, Flat]

In[3]:= MatchQ[f[1, 2], f[l_Integer, r___]]
Out[3]=False
"

Oops! What happens here?
I heard, that this Attribute may influence
Matching - but I don't see, why something
matched before now doesnt match anymore.

Btw:

"
In[5]:=$VersionNumber
Out[5]=4.

In[6]:=$ReleaseNumber
Out[6]=1
"

Greetings
  Detlef


  • Prev by Date: Installation Problems on Windows 2000
  • Next by Date: Making a LIst Reconsidered
  • Previous by thread: Installation Problems on Windows 2000
  • Next by thread: Re: Matching on Arguments of Flat Functions ...