xoolive / quadtree

Quadtrees – iterate on pairs of neighbours
MIT License
8 stars 3 forks source link

Add a more Python-like way of iterating #3

Closed xoolive closed 9 years ago

xoolive commented 9 years ago

It would be great to iterate like this:

for elt in quadtree:
    print elt

or

[elt[0]**2 + elt[1]**2 for elt in quadtree]