sequencetools.all_are_positive_integers

abjad.tools.sequencetools.all_are_positive_integers.all_are_positive_integers(expr)[source]

New in version 2.0.

True when expr is a sequence and all elements in expr are positive integers:

abjad> from abjad.tools import sequencetools
abjad> sequencetools.all_are_positive_integers([1, 2, 3, 99])
True

Otherwise false:

abjad> sequencetools.all_are_positive_integers(17)
False

Return boolean.

This Page