diff options
Diffstat (limited to 'ranger/ext/iter_tools.py')
-rw-r--r-- | ranger/ext/iter_tools.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ranger/ext/iter_tools.py b/ranger/ext/iter_tools.py index d583d060..838d8aff 100644 --- a/ranger/ext/iter_tools.py +++ b/ranger/ext/iter_tools.py @@ -3,6 +3,7 @@ from collections import deque + def flatten(lst): """Flatten an iterable. @@ -22,6 +23,7 @@ def flatten(lst): else: yield elem + def unique(iterable): """Return an iterable of the same type which contains unique items. |