done implementing functor to search through quad tree, adding to priority queue (for Dijkstra's algorithm)

This commit is contained in:
2025-01-19 23:56:52 +00:00
parent 1ba42462ba
commit 3939b0b3e2
4 changed files with 241 additions and 26 deletions

View File

@@ -2,8 +2,6 @@ signature QUAD_FOLDER =
sig
type env
type state
val isReachable: state * env * int -> bool
val fState: state * env * int -> state
end
@@ -17,11 +15,7 @@ struct
else
let
val {itemID, ...} = Vector.sub (elements, pos)
val state =
if Fn.isReachable (state, env, itemID) then
Fn.fState (state, env, itemID)
else
state
val state = Fn.fState (state, env, itemID)
in
foldVec (iX, iY, iW, iH, pos + 1, elements, state, env)
end