Skip to content
Snippets Groups Projects
Commit 6df2c6dc authored by nilfit's avatar nilfit
Browse files

unsafely fix extraction of list.Nth

Extracted code now uses `List.nth_opt` instead of `nth`.

Also changed to unsafely convert from `Z.t` to ocaml int. This is bad
and doesn't work in general.
parent 6ea537ae
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ theory list.Mem ...@@ -53,7 +53,7 @@ theory list.Mem
end end
theory list.Nth theory list.Nth
syntax function nth "List.nth %1 %2" syntax function nth "List.nth_opt %2 (Z.to_int %1)"
end end
theory list.Append theory list.Append
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment