Print set and maps

"Johan Mazel [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <CAKS5mhR4aw0iG4J_-wwAggENFWj3dMNjQ-vpFf9z6XhoX3N4hg@mail.gmail.com>
Hi
Is there any standard way to generate strings that contain the content of
sets/maps (standard, Batteries or Core) ?
I wrote several to_string functions (either using the print function of
Batteries or just by converting type to lists and then printing it with the
BatList module's print function) for these types.
I however would rather use something from the library instead (especially
for Core). I tried to read the doc (
https://ocaml.janestreet.com/ocaml-core/latest/doc/) but I did not get any
results.
Is there anything that would do the job ?
Thank you for your time.
Johan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.