generic_groupby

emmet.core.structure_group.generic_groupby(list_in, comp=operator.eq)
Return type:

list[int]

Group a list of unsortable objects Args:

list_in: A list of generic objects comp: (Default value = operator.eq) The comparator

Returns:

[int] list of labels for the input list