append.fl: Append adds an element to the end of the list.

Description Usage Arguments Value See Also

Description

This is the more useful function from a user's perspective, since the organization of the arguments makes it easy to pipe several calls of append together. This function combines recursion and the function prepend to make sure the base empty_list stays at the end of the list.

Usage

1
2
## S3 method for class 'fl'
append(ls, el)

Arguments

ls

A function, with class fl, that operates as a functional list object

el

A data element (from R's standard data types) to add to the list

...

Used for S3 consistency

Value

A closure with the fl class added. The closure can be used to access different properties of the list: either the head, tail or its empty status.

See Also

append


michaelquinn32/lambdaList documentation built on May 22, 2019, 9:52 p.m.