Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Popn ¶
func Popn(stack StackFrame, n int) (values []StackFrame, rest StackFrame)
func String ¶
func String(stack StackFrame) string
Types ¶
type StackFrame ¶
type StackFrame interface { Up() StackFrame Height() int Value() interface{} }
func NewFrame ¶
func NewFrame(up StackFrame, value interface{}) StackFrame
func Replace ¶
func Replace(stack StackFrame, num int, value interface{}) (StackFrame, interface{})
func Swap ¶
func Swap(stack StackFrame, num int) StackFrame
func UpBy ¶
func UpBy(stack StackFrame, num int) StackFrame
Click to show internal directories.
Click to hide internal directories.