cbuf: cbuf

Description Usage Arguments Value

View source: R/helper-functions.R

Description

Simple implementation of a circular buffer.

Usage

1
cbuf(b, v, e)

Arguments

b

The variable holding the current buffer content

v

The new valued to be added to b

e

The length of circular buffer

Value

The buffer b plus the element v minus the least recently added element


antonio-pgarcia/evoper documentation built on Aug. 30, 2020, 10:40 p.m.