package tablecloth-base

  1. Overview
  2. Docs

Module Set.OfSource

This functor lets you describe the type of Sets a little more concisely.

  let names : Set.Of(String).t =
    Set.from_list (module String) ["Andrew"; "Tina"]

Is the same as

  let names : (string, String.identity) Set.t =
    Set.from_list (module String) ["Andrew"; "Tina"]

Parameters

module M : sig ... end

Signature

Sourcetype nonrec t = (M.t, M.identity) t
OCaml

Innovation. Community. Security.