MathGroup Archive 2005

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

Search the Archive

Re: pattern matching question


In[16]:=
rules={{{_,m1_},{_,m2_},{_,m3_}}/;(m1!=m2!=m3):>
        "something",
      {{_,m1_},{_,m2_},{_,m3_}}:>"something else"};
In[17]:=
{{1,1},{1,1},{2,2}}/.rules
Out[17]=
something else
In[18]:=
{{1,1},{1,2},{2,3}}/.rules
Out[18]=
something


  • Prev by Date: Re: problem with making boxes
  • Previous by thread: pattern matching question
  • Next by thread: problem with making boxes