-
dedupe(iterable, get_key)[source]ΒΆ Yield from iterable without duplicates.
Parameters: - iterable (
iterable) β The iterable whose items should be deduped. - get_key (
callable) β Takes an item from iterable and a key. If two items return the same key, they are considered duplicates.
Yields: objectβ An item in iterable.- iterable (