Array.to_string?

21 views
Skip to first unread message

George Karpenkov

unread,
Mar 26, 2014, 6:16:34 AM3/26/14
to ocaml...@googlegroups.com
Hi All, 

Another quick question about Core: Array.to_string seems to be missing, while `to_string` converters are provided for [most] other modules.
Is it a deliberate omission, or simply something which wasn't finished yet?

Yaron Minsky

unread,
Mar 26, 2014, 6:21:32 AM3/26/14
to ocaml...@googlegroups.com
We tend not to have to-string converters for polymorphic containers.
Generally, the solution is to use the sexp-converter (which you can
specialize to the concrete type contained therein) and convert that to
a string.
> --
> You received this message because you are subscribed to the Google Groups
> "ocaml-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ocaml-core+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages