Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*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 1999

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

Search the Archive

Re: implementing a stack

  • To: mathgroup at smc.vnet.net
  • Subject: [mg15989] Re: implementing a stack
  • From: Dan Truong <dtruong at irisa.fr>
  • Date: Fri, 19 Feb 1999 03:27:06 -0500
  • Organization: Irisa, Rennes (FR)
  • References: <7ag29l$agg@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I guess something like this:
push:
list = Prepend[list,element];
pop:
list = Delete[list,1];

See Prepend, Append Insert, Delete ReplacePart Union, Join...
Page 128 of Wolfram/Mathematica book 2nd ed. or help.


  • Prev by Date: Strange result of Limit function in Mathematica3.0
  • Next by Date: Re: escape-sequences in strings
  • Previous by thread: Re: implementing a stack
  • Next by thread: Re: implementing a stack