Optionallist: T[]Optionalitem: TOptionalposition: firstLastEnumOptionalclone: booleanThe list that receives the item.
The item that goes at the chosen end.
OptionalpositionWhether the item goes at the start (first) or the end (last).
OptionalcloneWhen true, the list is deep-copied first so the input is never changed; when false the item is added in place.
A list, an item and an end for
lists.addItemFirstLast.