MCPcopy Create free account
hub / github.com/ActiveState/code / Load

Function Load

recipes/Python/578044_Fractal_painter/recipe-578044.py:125–135  ·  view source on GitHub ↗
(aGrid, nX, nY, n)

Source from the content-addressed store, hash-verified

123# A dictionary would be more efficient, but it seems to work O.K.
124
125def Load(aGrid, nX, nY, n):
126
127 # changes value if not set, or else it returns the value
128
129 if aGrid[nX][nY] == -1:
130
131 aGrid[nX][nY] = n
132
133 return n
134
135 return aGrid[nX][nY]
136
137
138

Callers 1

FracDownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected