appended

.appended to:{Iterable<Any>} value:{Dynamic} -> Iterable<Any>

Adds an element at the end of a collection. The original collection is not modified.

.var {letters}
- A
- B

.letters::appended {C} <!-- A, B, C -->

Return

a new collection containing the elements of the original collection followed by value

Parameters

to

collection to add the element to

value

element to add at the end of the collection

Chaining

This function is designed to be chained with other function calls:
Iterable<Any>::appended value:{Dynamic} -> Iterable<Any>