Creates a copy of a list with a new element concatenated at the end.
Arguments
Arguments | |
---|---|
objs |
The source list. Note that this list is not modified. |
val |
The element that will be concatenated at the end. |
Returns
A copy of objs
with val
concatenated at the end.
Raised exceptions
Exceptions | |
---|---|
TypeError |
If objs is not a list. |
Examples
You can use this function in an expression like this:
${list.concat(objs, val)}