sequencetools.remove_subsequence_of_weight_at_index

abjad.tools.sequencetools.remove_subsequence_of_weight_at_index.remove_subsequence_of_weight_at_index(sequence, weight, index)[source]

New in version 1.1.

Remove subsequence of weight at index:

abjad> from abjad.tools import sequencetools
abjad> sequencetools.remove_subsequence_of_weight_at_index((1, 1, 2, 3, 5, 5, 1, 2, 5, 5, 6), 13, 4)
(1, 1, 2, 3, 5, 5, 6)

Return newly constructed sequence object.

Changed in version 2.0: renamed listtools.remove_weighted_subrun_at() to sequencetools.remove_subsequence_of_weight_at_index().

This Page