RosettaCodeData/Task/Stack/Zkl/stack.zkl

8 lines
173 B
Text
Raw Permalink Normal View History

2017-09-23 10:01:46 +02:00
class Stack{
var [const] stack=L();
fcn push(x){stack.append(x); self}
fcn pop {stack.pop()}
fcn empty {(not stack.len())}
var [proxy] isEmpty = empty;
}