Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions 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

QueueSize

func QueueSize() int
Ask AI Claude ChatGPT

QueueSize returns the number of elements in the FIFO queue.

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/stack/v0.QueueSize()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/moul/x/daily/stack/v0, for example a function call with arguments.