Browse Source

Add push wrapper function to stack

ApisNecros 2 years ago
parent
commit
169994b98d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      starfish.js

+ 5 - 1
starfish.js

@@ -218,6 +218,10 @@ class Stack {
         this.register = null;
     }
 
+    Push(newValue) {
+        this.stack.push(newValue);
+    }
+
     /**
      * Implement }
      * 
@@ -242,7 +246,7 @@ class Stack {
      * Swaps the top two values of the stack
      */
     SwapTwo() {
-        
+        // TODO
     }
 
     /**