MathGroup Archive 2011

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

Search the Archive

Re: Pattern matching

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116572] Re: Pattern matching
  • From: Alexey <lehin.p at gmail.com>
  • Date: Sun, 20 Feb 2011 05:25:59 -0500 (EST)
  • References: <ijo54e$lf0$1@smc.vnet.net>

On 19 =D1=84=D0=B5=D0=B2, 15:13, Leonid Shifrin <lshifr at gmail.com> wrote:
> Could do this:
>
> In[1]:= f[u] /. f[u + x : _ : 0] -> x
>
> Out[1]= 0
>
> Regards,
> Leonid

Is the form "x : _ : 0" a non-standard alternative to "x_."? Btw I
cannot find where this form is documented.


  • Prev by Date: Re: Another point about Mathematica 8.0
  • Next by Date: Re: Cloud Mathematica
  • Previous by thread: Re: Pattern matching
  • Next by thread: Re: Pattern matching