Commit before looking into pathfinding
This commit is contained in:
+4
-6
@@ -130,14 +130,12 @@ pokeTopPrismIndex nv iptr counts ioff = do
|
|||||||
UMV.unsafeModify counts (+1) 1
|
UMV.unsafeModify counts (+1) 1
|
||||||
|
|
||||||
memoTopPrismEdgeIndices :: V.Vector (UV.Vector Int)
|
memoTopPrismEdgeIndices :: V.Vector (UV.Vector Int)
|
||||||
memoTopPrismEdgeIndices = V.generate 10 f
|
memoTopPrismEdgeIndices = V.generate 10
|
||||||
where
|
$ UV.fromList . topPrismEdgeIndices . (+ 2)
|
||||||
f n = UV.fromList $ topPrismEdgeIndices (n + 2)
|
|
||||||
|
|
||||||
memoTopPrismIndices :: V.Vector (UV.Vector Int)
|
memoTopPrismIndices :: V.Vector (UV.Vector Int)
|
||||||
memoTopPrismIndices = V.generate 10 f
|
memoTopPrismIndices = V.generate 10
|
||||||
where
|
$ UV.fromList . topPrismIndices . (+ 2)
|
||||||
f n = UV.fromList $ topPrismIndices (n + 2)
|
|
||||||
|
|
||||||
topPrismEdgeIndices :: Int -> [Int]
|
topPrismEdgeIndices :: Int -> [Int]
|
||||||
topPrismEdgeIndices n = concatMap f [0..n-1]
|
topPrismEdgeIndices n = concatMap f [0..n-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user