Skip to content
Snippets Groups Projects
Commit ab9cfef4 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

heap fix

parent 958fff97
No related branches found
No related tags found
No related merge requests found
...@@ -205,7 +205,7 @@ class Heap(object): ...@@ -205,7 +205,7 @@ class Heap(object):
State of the heap is not changed State of the heap is not changed
:return: Iterator :return: Iterator
""" """
return reversed(self.iter_ascending()) return reversed(list(self.iter_ascending()))
@typed(returns=six.integer_types) @typed(returns=six.integer_types)
def __len__(self): def __len__(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment