append_cmisc: append an element to a list, the cmisc way

View source: R/append_cmisc.R

append_cmiscR Documentation

append an element to a list, the cmisc way

Description

append an element to a list, the cmisc way

Usage

append_cmisc(mylist, new_element)

Arguments

mylist

a list

new_element

a new element to append to the list

Value

A list with the new element appended

Examples

library(magrittr)
aa <- aa_old <- list()
aa_old %<>% append(1:10)
aa %<>% append_cmisc(1:10)
aa; aa_old


PatrickCoyle/cmisc documentation built on June 23, 2022, 3:07 p.m.