Stay organized with collections
Save and categorize content based on your preferences.
Creates a copy of a list with a new element concatenated at the end.
Arguments
Arguments
objs
list
The source list. Note that this list is not modified.
val
any
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
# Concatenate `val` to end of copy of `my_list`# Returns `["zero","one","two","three"]`-init:assign:-my_list:["zero","one","two"]-val:"three"-returnStep:return:${list.concat(my_list, val)}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-30 UTC."],[],[]]