done with adding/inserting into GapMap
This commit is contained in:
@@ -485,11 +485,11 @@ struct
|
|||||||
let
|
let
|
||||||
val rfirst = Vector.sub (hd, 0)
|
val rfirst = Vector.sub (hd, 0)
|
||||||
in
|
in
|
||||||
if Fn.g (new, rfirst) then
|
if Fn.g (new, rfirst) then
|
||||||
insRight (newKey, newVal, leftKeys, leftVals, rightKeys, rightVals)
|
insRight (newKey, newVal, leftKeys, leftVals, rightKeys, rightVals)
|
||||||
else if Fn.l (new, rfirst) then
|
else if Fn.l (new, rfirst) then
|
||||||
insLeft (newKey, newVal, leftKeys, leftVals, rightKeys, rightVals)
|
insLeft (newKey, newVal, leftKeys, leftVals, rightKeys, rightVals)
|
||||||
else
|
else
|
||||||
map
|
map
|
||||||
end
|
end
|
||||||
| [] => insLeft (newKey, newVal, leftKeys, leftVals, rightKeys, rightVals)
|
| [] => insLeft (newKey, newVal, leftKeys, leftVals, rightKeys, rightVals)
|
||||||
|
|||||||
Reference in New Issue
Block a user