Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

stack/v0 package

Overview

Package stack is an educational data-structure playground that keeps BOTH a LIFO stack and a FIFO queue of ints, so you can compare how the two behave.

Function

StackSize

func StackSize() int

StackSize returns the number of elements in the LIFO stack.

Command

gnokey query vm/qeval -remote "http://127.0.0.1:26657" -data "gno.land/r/moul/x/daily/stack/v0.StackSize()"

Result