ElementsGroup.unique
- ElementsGroup.unique(key=None)[source]
Return a new group containing only unique members.
If a key function is provided, uniqueness is determined by key(member), otherwise by member identity.
Return a new group containing only unique members.
If a key function is provided, uniqueness is determined by key(member), otherwise by member identity.