aboutsummaryrefslogtreecommitdiffhomepage
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/proofview.ml6
1 files changed, 2 insertions, 4 deletions
diff --git a/engine/proofview.ml b/engine/proofview.ml
index d1970abc9..2b8fc0057 100644
--- a/engine/proofview.ml
+++ b/engine/proofview.ml
@@ -409,10 +409,8 @@ let tclFOCUSLIST l t =
| [] -> tclZERO (NoSuchGoals 0)
| (mi, _) :: _ ->
let left, sub_right = CList.goto (mi-1) comb in
- let p x = CList.exists (fun (i, j) -> i <= x && x <= j) l in
- (* Since there is no [CList.partitioni], we do it manually. *)
- let sub = CList.filteri (fun x _ -> p (x + mi)) sub_right in
- let right = CList.filteri (fun x _ -> not (p (x + mi))) sub_right in
+ let p x _ = CList.exists (fun (i, j) -> i <= x +mi && x + mi <= j) l in
+ let sub, right = CList.partitioni p sub_right in
let mj = mi - 1 + CList.length sub in
Comb.set (CList.rev_append left (sub @ right)) >>
tclFOCUS mi mj t