MathGroup Archive 1999

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

Search the Archive

? Repeated Patterns ?


Dear Mathematica users,

The following Mathematica result quite confuses me. I can understand the output of
the first input command, but not the second output. Why not {0,1) but
{0,0,0,1}?
Many thanks if anyone could help me.

DongGook Park


----- Mathematica script (Repeated patterns) --------

In[1]:=
{1,0,0,0} /. {x___Integer, y_Integer..} -> {x, y}

Out[1]=
{1,0}

In[2]:=
{0,0,0,1} /. {x_Integer.., y___Integer} -> {x, y}

Out[2]=
{0,0,0,1}



  • Prev by Date: Re: Limit of an Integer Function
  • Next by Date: RE: ReadList
  • Previous by thread: complex-valued expression not simplifying completely (was: ARghh!!)
  • Next by thread: Re: ? Repeated Patterns ?