Haskell -> Python
d at davea.name
Sat Nov 3 03:03:17 CET 2012
On 11/02/2012 06:27 PM, Ian Kelly wrote:
> On Fri, Nov 2, 2012 at 4:24 PM, Dave Angel <d at davea.name> wrote:
>> Perhaps range(heap) should be replaced by range(len(heap))
> "heaps" is a list of ints per the OP, so "heap" is an int.
You're right of course <blush>. I was distracted by the fact that a
heap is normally a collection of thing, and didn't notice that here it
is a count of those things.
More information about the Python-list