Add Len() to Stack

This commit is contained in:
Austin Roberts committed 2021-09-02 16:26:40 -05:00
1 parent f615e3813d
commit 0d5af1c7dc
1 file changed
+5
+5
View File
@@ -0,0 +1,5 @@
package vm
func (st *Stack) Len() int {
return len(st.data)
}