Skip to content
Snippets Groups Projects
Commit 47667739 authored by Augustin Jaujay's avatar Augustin Jaujay
Browse files

Making pattern matching exaustive

parent 7c00f8d7
Branches
Tags question_4.2
No related merge requests found
......@@ -12,7 +12,7 @@ let string_of_state (cmds,stack) =
(* Question 4.2 *)
let step state =
match state with
(* | [], _ -> Error("Nothing to step",state) *)
| [], _ -> Error("Nothing to step",state)
(* Exception configurations *)
| Pop::_, [] -> Error("Nothing to pop",state)
| Swap::_, _::[] -> Error("Nothing to swap",state)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment