remove_subsequence_of_weight_at_index

sequencetools.remove_subsequence_of_weight_at_index(sequence, weight, index)

Removes subsequence of weight at index.

Example 1. Removes subsequence of tuple:

>>> sequence = (1, 1, 2, 3, 5, 5, 1, 2, 5, 5, 6)
>>> sequencetools.remove_subsequence_of_weight_at_index(sequence, 13, 4)
(1, 1, 2, 3, 5, 5, 6)

Example 2. Removes subsequence of list:

>>> sequence = [1, 1, 2, 3, 5, 5, 1, 2, 5, 5, 6]
>>> sequencetools.remove_subsequence_of_weight_at_index(sequence, 13, 4)
[1, 1, 2, 3, 5, 5, 6]

Returns new object of sequence type.