top: Return the top value in the queue

Description Usage Arguments Value Examples

View source: R/qfifo.R

Description

Return the top value in the queue

Usage

1
top(q)

Arguments

q

is the current fifo queue object

Value

The top of the queue

Examples

1
2
3
q <- qfifo()
q <- add(q,1234)
v <- top(q)

vnnishith/qfifo documentation built on May 17, 2019, 10:12 a.m.