popl-paper-ocaml/test/test.ml
2024-04-22 15:00:46 -05:00

2 lines
97 B
OCaml

let%monomorphic prop0 (f : 'a -> 'b) (xs : 'a List.t) : bool =
List.length (List.map f xs) = 0