Cleanup
This commit is contained in:
+2
-5
@@ -134,11 +134,8 @@ obstructPathsCrossing ::
|
||||
Point2 ->
|
||||
Point2 ->
|
||||
World ->
|
||||
(World, [(Int,Int)])
|
||||
obstructPathsCrossing obs s e w =
|
||||
( w & cWorld . incGraph %~ updateincedges
|
||||
, inces
|
||||
)
|
||||
World
|
||||
obstructPathsCrossing obs s e w = w & cWorld . incGraph %~ updateincedges
|
||||
where
|
||||
updateincedge = flip $ updateEdge (S.union obs)
|
||||
updateincedges gr = foldl' updateincedge gr inces
|
||||
|
||||
Reference in New Issue
Block a user