Re: When is a List not a List?

*To*: mathgroup at smc.vnet.net*Subject*: [mg90981] Re: When is a List not a List?*From*: roby.nowak at gmail.com*Date*: Fri, 1 Aug 2008 03:02:05 -0400 (EDT)*References*: <g6rntk$7kj$1@smc.vnet.net>

On 31 Jul., 09:00, AES <sieg... at stanford.edu> wrote: > g[x_, n_] := x^n > FullForm[Table[g[x, n], {n, 1, 2}]] > FullForm[{g[x, 1], g[x, 2]}] > Plot[{g[x, 1], g[x, 2]}, {x, 0, 1}, PlotStyle -> {Red, Blue}] > Plot[Table[g[x, n], {n, 1, 2}], {x, 0, 1}, PlotStyle -> {Red, Blue}] > > The FullForm[]s are identical. One Plot[] has red and blue curves; the > other has two blue curves. > > Quirky! Plot[Evaluate[Table[g[x, n], {n, 1, 2}]], {x, 0, 1}, PlotStyle -> {Red, Blue}] Don't ask why .... Has something to do with: Attributes[Plot] Attributes[Table] Out[28]= {HoldAll, Protected} Out[29]= {HoldAll, Protected}