Produce a new immutable list based on the prefix List (which must not be modified after this operation) and the new element to follow them.
Produce a new immutable list based on the given list, but with the last element excluded. Try to avoid creating new objects if possible.