Skip to main content

seq_concat_item

Return copy of sequence seq with item added.

def seq_concat_item(
seq: Sequence,
item: Any
) - > Sequence

Return copy of sequence seq with item added.

Parameters

NameTypeDescription
seqSequenceThe original sequence (tuple or list) to which the item will be appended
itemAnyThe individual element to add to the end of the sequence

Returns

TypeDescription
SequenceIf seq is a tuple, the result will be a tuple, otherwise it depends on the implementation of add.