? 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}
- Follow-Ups:
- Re: ? Repeated Patterns ?
- From: "Wolf, Hartmut" <hwolf@debis.com>
- Re: ? Repeated Patterns ?