reverse_sequence

sequencetools.reverse_sequence(sequence)

Reverses sequence.

Example 1. Reverses tuple:

>>> sequencetools.reverse_sequence((1, 2, 3, 4, 5))
(5, 4, 3, 2, 1)

Example 2. Reverses list:

>>> sequencetools.reverse_sequence([1, 2, 3, 4, 5])
[5, 4, 3, 2, 1]

Returns new object of sequence type.