pyanno4rt.tools._deduplicate

Deduplicating indexing via dictionary.

Overview

Function

deduplicate(elements)

Convert an iterable to a dictionary with index tuple for each element.

Functions

pyanno4rt.tools._deduplicate.deduplicate(elements)[source]

Convert an iterable to a dictionary with index tuple for each element.

Parameters:

elements (iterable) – Iterable over which to loop.

Returns:

Dictionary with the element-indices pairs.

Return type:

dict