Skip to content
Snippets Groups Projects
Commit a10f5935 authored by François Bobot's avatar François Bobot
Browse files

[QED/listmap] Fix change function

parent b3b4062f
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,10 @@ struct ...@@ -95,7 +95,10 @@ struct
| [] -> (match f k v None with None -> l | Some w -> l @ [k,w]) | [] -> (match f k v None with None -> l | Some w -> l @ [k,w])
| ((k',v') as a)::next-> | ((k',v') as a)::next->
let c = K.compare k k' in let c = K.compare k k' in
if c < 0 then l if c < 0 then
match f k v None with
| None -> l
| Some w -> append_until a l ((k, w) :: next)
else if c = 0 then else if c = 0 then
match f k v (Some v') with match f k v (Some v') with
| None -> append_until a l next | None -> append_until a l next
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment