View source: R/optim_helper_functions.R
Adds new element to top of list, removing bottom elements if new length is greater tham M
1 | updateList(new_el, old_list = list(), M = 1)
|
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) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.