Is there a package for stacks with pushing and popping?
I'd really like to do something like
push(par(no.readonly=TRUE))
some stuff
par(pop())
It seems like it wouldn't be difficult, and that someone may have already
implemented a set of stack functions, and I wouldn't like to duplicate
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Forrest
Sent: Tuesday, February 25, 2003 11:34 AM
To: [EMAIL PROTECTED]
Subject: [R] push/pop on a stack
Is there a package for stacks with pushing and popping?
I'd really like to do something like
It seems like it wouldn't be difficult, and that someone may have already
implemented a set of stack functions, and I wouldn't like to duplicate it.
Here's a Tuesday evening lash-up. Usage is:
mystack - stack() # initialisation
push(mystack,value) # stores something on the stack
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Barry Rowlingson
Sent: Tuesday, February 25, 2003 12:10 PM
To: David Forrest
Cc: [EMAIL PROTECTED]
Subject: Re: [R] push/pop on a stack
It seems like it wouldn't be difficult, and that someone may have