Hilbert curve: Difference between revisions
Content deleted Content added
m →Functional Python: (One addition comment for clarity, minor edit to preamble) |
|||
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 -> |
'''Size -> Centre of a subtree -> All subtree points''' |
||
def go(xy, tree): |
def go(xy, tree): |
||
r = d // 2 |
r = d // 2 |