TypedFrozenset¶
-
class
abjad.utilities.TypedFrozenset.
TypedFrozenset
(items=None, item_class=None)¶ Typed fozen set.
Attributes Summary
__and__
Logical AND of typed frozen set and argument
.__ge__
Is true when typed frozen set is greater than or equal to argument
.__gt__
Is true when typed frozen set is greater than argument
.__hash__
Hashes typed frozen set. __le__
Is true when typed frozen set is less than or equal to argument
.__lt__
Is true when typed frozen set is less than argument
.__or__
Logical OR of typed frozen set and argument
.__sub__
Subtracts argument
from typed frozen set.__xor__
Logical XOR of typed frozen set and argument
.copy
Copies typed frozen set. difference
Typed frozen set set-minus argument
.intersection
Set-theoretic intersection of typed frozen set and argument
.isdisjoint
Is true when typed frozen set shares no elements with argument
.issubset
Is true when typed frozen set is a subset of argument
.issuperset
Is true when typed frozen set is a superset of argument
.symmetric_difference
Symmetric difference of typed frozen set and argument
.union
Union of typed frozen set and argument
.Special methods
-
__and__
(argument)¶ Logical AND of typed frozen set and
argument
.Returns new typed frozen set.
-
(
TypedCollection
).__contains__
(item)¶ Is true when typed collection contains
item
.Returns true or false.
-
(
TypedCollection
).__eq__
(argument)¶ Is true when
argument
is a typed collection with items that compare equal to those of this typed collection.Returns true or false.
-
(
AbjadObject
).__format__
(format_specification='')¶ Formats Abjad object.
Set
format_specification
to''
or'storage'
. Interprets''
equal to'storage'
.Returns string.
-
__ge__
(argument)¶ Is true when typed frozen set is greater than or equal to
argument
.Returns true or false.
-
__gt__
(argument)¶ Is true when typed frozen set is greater than
argument
.Returns true or false.
-
__hash__
()¶ Hashes typed frozen set.
Returns integer.
-
(
TypedCollection
).__iter__
()¶ Iterates typed collection.
Returns generator.
-
__le__
(argument)¶ Is true when typed frozen set is less than or equal to
argument
.Returns true or false.
-
(
TypedCollection
).__len__
()¶ Gets length of typed collection.
Returns nonnegative integer.
-
__lt__
(argument)¶ Is true when typed frozen set is less than
argument
.Returns true or false.
-
__or__
(argument)¶ Logical OR of typed frozen set and
argument
.Returns new typed frozen set.
-
(
AbjadObject
).__repr__
()¶ Gets interpreter representation of Abjad object.
Returns string.
-
__sub__
(argument)¶ Subtracts
argument
from typed frozen set.Returns new typed frozen set.
-
__xor__
(argument)¶ Logical XOR of typed frozen set and
argument
.Returns new typed frozen set.
Methods
-
copy
()¶ Copies typed frozen set.
Returns new typed frozen set.
-
difference
(argument)¶ Typed frozen set set-minus
argument
.Returns new typed frozen set.
-
intersection
(argument)¶ Set-theoretic intersection of typed frozen set and
argument
.Returns new typed frozen set.
-
isdisjoint
(argument)¶ Is true when typed frozen set shares no elements with
argument
.Returns true or false.
-
issubset
(argument)¶ Is true when typed frozen set is a subset of
argument
.Returns true or false.
-
issuperset
(argument)¶ Is true when typed frozen set is a superset of
argument
.Returns true or false.
-
symmetric_difference
(argument)¶ Symmetric difference of typed frozen set and
argument
.Returns new typed frozen set.
-
union
(argument)¶ Union of typed frozen set and
argument
.Returns new typed frozen set.
Read-only properties
-
(
TypedCollection
).item_class
¶ Gets item class of collection.
Collection coerces items according to
item_class
.Returns class.
-
(
TypedCollection
).items
¶ Gets items in collection.
Returns list.
-