push: Add an element to the top of a stack.

Description Usage Arguments Value

View source: R/stacks.R

Description

Add an element to the top of a stack.

Usage

1
push(x, elm)

Arguments

x

The stack

elm

The elememtn

Value

an updated stack


mailund/ralgo documentation built on April 3, 2018, 9:29 p.m.