RosettaCodeData/Task/Stack/Wart/stack.wart
2023-07-01 13:44:08 -04:00

11 lines
203 B
Text

def (stack)
(tag 'stack nil)
mac (push! x s) :qcase `(isa stack ,s)
`(push! ,x (rep ,s))
mac (pop! s) :qcase `(isa stack ,s)
`(pop! (rep ,s))
def (empty? s) :case (isa stack s)
(empty? rep.s)