xsdata.utils.collections module¶
-
xsdata.utils.collections.
unique_sequence
(items, key=None)[source]¶ Return a new list with the unique values from the sequence.
Optionally you can also provide a lambda to generate the unique key of each item in the sequence.
-
xsdata.utils.collections.
group_by
(items, key)[source]¶ Group the items of a sequence by the result of the callable.