popl-paper-ocaml/test/test.ml

3 lines
97 B
OCaml
Raw Normal View History

2024-04-22 20:00:46 +00:00
let%monomorphic prop0 (f : 'a -> 'b) (xs : 'a List.t) : bool =
List.length (List.map f xs) = 0