Stack2: A stack implemented entirely in R

Description Usage Arguments

View source: R/stack.R

Description

A Stack2 object is backed by a list. All manipulation is done in R, without calling out to any compiled code. The backing list will grow or shrink as the stack changes in size.

Usage

1
Stack2(init = 20)

Arguments

init

Initial size of the list that backs the stack. This is also used as the minimum size of the list; it will not shrink any smaller.


wch/qstack documentation built on May 4, 2019, 2:02 a.m.