Stack-class {xmlr}R Documentation

A general purpose linked stack

Description

A general purpose linked stack

Fields

size

the size of the stack (number of elements in the stack)

stackNode

an envronment containing the current element and the one under

Methods

peek()

Get the top element from the stack without changing it

pop()

Pull the top element from the stack removing it from the stack

push(val)

Add an element to the top of the stack

size()

Get the current size of the stack


[Package xmlr version 0.1.2 Index]