summaryrefslogtreecommitdiff
path: root/src/vylist.ml
diff options
context:
space:
mode:
Diffstat (limited to 'src/vylist.ml')
-rw-r--r--src/vylist.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vylist.ml b/src/vylist.ml
index dbcf906..8ee1e19 100644
--- a/src/vylist.ml
+++ b/src/vylist.ml
@@ -31,10 +31,10 @@ let rec insert_after p x xs =
let complement xs ys =
let rec aux xs ys =
match xs, ys with
- | [], _ -> Some ys
+ | [], _ -> ys
| _, [] -> assert false (* Can't happen *)
| p :: ps, q :: qs -> if p = q then aux ps qs
- else None
+ else []
in
if List.length xs < List.length ys then aux xs ys
else aux ys xs