Fixed unused variable warning

This commit is contained in:
Georges Dupéron 2019-05-15 15:14:49 +02:00
parent 6ccdf0bf9e
commit 3a7d2a85f1

View File

@ -2,7 +2,7 @@ include List
let rec remove n = function let rec remove n = function
| [] -> raise (Failure "List.remove") | [] -> raise (Failure "List.remove")
| hd :: tl when n = 0 -> tl | _ :: tl when n = 0 -> tl
| hd :: tl -> hd :: remove (n - 1) tl | hd :: tl -> hd :: remove (n - 1) tl