Suppose I have a list_fun : int_list -> string list function list_fun : int_list -> string list , and in this function I use a StringSet, which I define as a module StringSet = Set.Make(String) ;; . I try to return the Set.elements s function and get a string list , but instead I get a StringSet.elt list which should be the same as StringSet type t = string
How to make OCAML understand that these types are identically defined? I have several cases when I encountered this problem, since I started using the standard functions of the OCAML library.
source share