Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Table/Evaluate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30627] Table/Evaluate
  • From: bernd at bio.vu.nl (Bernd Brandt)
  • Date: Fri, 31 Aug 2001 19:58:03 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Dear group,

With Table and Evaluate i found some things i did not expect.
I would like to know if someone understands this behaviour exemplified below.

Regards,
Bernd


p=10;

Table[Evaluate[p], {p, 4}]
{ 10, 10, 10}

Table[{Evaluate[p]}, {p, 4}]
{{1}, {2}, {3}, {4}}


Table[Evaluate[{p}], {p, 4}]
{{10}, {10}, {10}, {10}}

Table[Evaluate[{p}] // Flatten, {p, 4}]
{{1}, {2}, {3}, {4}}


  • Prev by Date: integer solutions
  • Next by Date: Font Kerning
  • Previous by thread: integer solutions
  • Next by thread: Font Kerning