MathGroup Archive 1999

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

Search the Archive

? Repeated Patterns ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg18858] ? Repeated Patterns ?
  • From: "DongGook Park" <park at isrc.qut.edu.au>
  • Date: Thu, 22 Jul 1999 22:57:52 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

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 ?