Hilbert curve: Difference between revisions

Content deleted Content added
Hout (talk | contribs)
m →‎Functional Python: (One addition comment for clarity, minor edit to preamble)
Hout (talk | contribs)
Line 1,024: Line 1,024:
# points :: Int -> ((Int, Int), Tree Char) -> [(Int, Int)]
# points :: Int -> ((Int, Int), Tree Char) -> [(Int, Int)]
def points(d):
def points(d):
'''Size -> subtree with its center -> All subtree points'''
'''Size -> Centre of a subtree -> All subtree points'''
def go(xy, tree):
def go(xy, tree):
r = d // 2
r = d // 2