summaryrefslogtreecommitdiff
path: root/modules/std/stack.qs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2020-10-17 15:22:09 +0800
committerchai <chaifix@163.com>2020-10-17 15:22:09 +0800
commit08ab881a480a73d6be005c4b4e1cf35814b53e3c (patch)
tree00297c01905cff519509598c5340a82c0fc2e941 /modules/std/stack.qs
Diffstat (limited to 'modules/std/stack.qs')
-rw-r--r--modules/std/stack.qs20
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/std/stack.qs b/modules/std/stack.qs
new file mode 100644
index 0000000..4151e39
--- /dev/null
+++ b/modules/std/stack.qs
@@ -0,0 +1,20 @@
+class Stack {
+ func init() {
+ self._stack = [];
+ }
+
+ func push(element) {
+ self._stack.push(element);
+ }
+
+ func pop() {
+ self._stack.pop();
+ }
+
+ func size() {
+
+ }
+}
+
+
+