match 1 :: [] with | [] -> false | h :: t -> h >= 1 && List.length t = 0
Alternative way of writing this code:
match [1] with | [h] -> h >= 1 | _ -> false
match 1 :: [] with | [] -> false | h :: t -> h >= 1 && List.length t = 0
Alternative way of writing this code:
match [1] with | [h] -> h >= 1 | _ -> false