Skip to content

Instantly share code, notes, and snippets.

@Gbury
Created May 31, 2020 20:17
Show Gist options
  • Save Gbury/265459178ca98c83f831817c95fc8e26 to your computer and use it in GitHub Desktop.
Save Gbury/265459178ca98c83f831817c95fc8e26 to your computer and use it in GitHub Desktop.
(** Subset of the Set.S signature *)
module type Set = sig
type t
val subset : t -> t -> bool
end
let f (type set) (module S : Set with type t = set) (s : set) (l : set list) =
List.exists (S.subset s) l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment