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.