MathGroup Archive 2010

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

Search the Archive

ReplaceAll reloaded

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107363] ReplaceAll reloaded
  • From: IstvÃn Zachar <zac at freemail.hu>
  • Date: Thu, 11 Feb 2010 05:15:44 -0500 (EST)
  • References: <hkeb04$t7v$1@smc.vnet.net> <4B6AB3AA.1080805@gmail.com> <4B6AB761.5060902@gmail.com> <f831b3d61002040428p72fb9984vaa8e8eb97d3e94e2@mail.gmail.com>

Can you please explain why ReplaceAll does not return a simple list?

In[21]:= ClearAll[x, a, b];
x = Or[a, b];

FullForm@x

Out[23]//FullForm= \!\(\*
TagBox[
StyleBox[
RowBox[{"Or", "[",
RowBox[{"a", ",", "b"}], "]"}],
ShowSpecialCharacters->False,
ShowStringCharacters->True,
NumberMarks->True],
FullForm]\)

In[24]:= x /. Or[y__] :> {y}

Out[24]= {a || b}


Thanks,
Istvan


  • Prev by Date: Extract parameters from FIndFit output
  • Next by Date: Re: Upright \[Micro] in AxesLabel
  • Previous by thread: Re: Extract parameters from FIndFit output
  • Next by thread: Re: ReplaceAll reloaded