sequencetools.get_indices_of_sequence_elements_equal_to_true

abjad.tools.sequencetools.get_indices_of_sequence_elements_equal_to_true.get_indices_of_sequence_elements_equal_to_true(sequence)[source]

New in version 1.1.

Get indices of sequence elements equal to true:

abjad> from abjad.tools import sequencetools
abjad> sequencetools.get_indices_of_sequence_elements_equal_to_true([0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1])
(3, 4, 5, 9, 10, 11, 12)

Return newly constructed tuple of zero or more nonnegative integers.

Changed in version 2.0: renamed listtools.true_indices() to sequencetools.get_indices_of_sequence_elements_equal_to_true().

This Page