Skip to content
Snippets Groups Projects
Commit 531d88c1 authored by Ralf Jung's avatar Ralf Jung
Browse files

give the fold_left version of fill

parent 4aeb0a86
No related branches found
No related tags found
No related merge requests found
...@@ -136,7 +136,9 @@ Definition ectx_item_fill (Ki : ectx_item) (e : expr) : expr := ...@@ -136,7 +136,9 @@ Definition ectx_item_fill (Ki : ectx_item) (e : expr) : expr :=
end. end.
Fixpoint fill K e := Fixpoint fill K e :=
(* FIXME RJ: This really is fold_left, but if I use that all automation breaks. *) (* FIXME RJ: This really is fold_left, but if I use that all automation breaks:
fold_left (fun e Ki => ectx_item_fill Ki e).
Or maybe we even have a combinator somewhere to swap the arguments? *)
match K with [] => e | Ki :: K => ectx_item_fill Ki (fill K e) end. match K with [] => e | Ki :: K => ectx_item_fill Ki (fill K e) end.
(** The stepping relation *) (** The stepping relation *)
......
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