updateList: updateList

Description Usage Arguments

View source: R/optim_helper_functions.R

Description

Adds new element to top of list, removing bottom elements if new length is greater tham M

Usage

1
updateList(new_el, old_list = list(), M = 1)

Arguments

new_el

element to add to top of list

old_list

list to append new_el to

M

maximum size of list (will truncate by removing bottom if length is greater than M)


mrparker909/optimizeAPA documentation built on June 28, 2020, 3:57 p.m.