Skip to content

Commit

Permalink
Update usage note
Browse files Browse the repository at this point in the history
  • Loading branch information
bbayles committed Feb 3, 2019
1 parent 646c0a3 commit 0a367d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions more_itertools/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ def unique_everseen(iterable, key=None):
>>> list(unique_everseen(iterable, key=tuple)) # Faster
[[1, 2], [2, 3]]
Similary, you may want to convert unhashable ``dict`` objects using
the :func:`dict.items` method.
Similary, you may want to convert unhashable ``set`` objects with
``key=frozenset``. For ``dict`` objects,
``key=lambda x: tuple(sorted(x.items()))`` can be used.
"""
seenset = set()
Expand Down

0 comments on commit 0a367d2

Please sign in to comment.