Skip to main content

seq_concat_seq

Concatenate two sequences: a + b.

def seq_concat_seq(
a: Sequence,
b: Sequence
) - > Sequence

Concatenate two sequences: a + b.

Parameters

NameTypeDescription
aSequenceThe first sequence to be concatenated, which may be cast to the type of sequence 'b' if 'b' is longer.
bSequenceThe second sequence to be concatenated, which may be cast to the type of sequence 'a' if 'a' is longer.

Returns

TypeDescription
SequenceThe return value will depend on the largest sequence: if b is larger and is a tuple, the return value will be a tuple; if a is larger and is a list, the return value will be a list.