Module StringOf.StringOfSet

StringOfSet is a submodule functor that, given a module S that is implemented using Set.Make, will create a module capable of converting instances of S to string form

parameter S

Test

Parameters

Signature

type elt = S.elt

The type of S's set elements

type t = S.t

The type of S instances

val string_of_set : (elt -> string) -> t -> string

string_of_set returns the given S.t as a string

parameter string_of_el

The function used to turn each element of the S.t to a string

parameter set

The S.t to convert to a string

returns

The given list as a string

val string_of_set_exp : (elt -> string) -> t -> string

string_of_set_exp returns the given S.t as a string in expanded form

parameter string_of_el

The function used to turn each element of the S.t to a string

parameter set

The S.t to convert to a string

returns

The given list as a string in expanded form