String.to_list

23 views
Skip to first unread message

Matej Kosik

unread,
Jul 18, 2012, 5:39:37 AM7/18/12
to ocaml...@googlegroups.com
Hi,

I am somewhat puzzled by the fact that when I use Core, in addition to:

String.to_list_rev

, which is mentioned in the documentation, I can also call

String.to_list

. Where did that function come from? I cannot find it in StringLabels
module (in the standard library). I could live with this but I would
rather like to know why is that. :-)

Thanks in advance for helping me.

David House

unread,
Jul 18, 2012, 5:43:37 AM7/18/12
to ocaml...@googlegroups.com
The [to_list] function comes from the Container interface. So if
you're wondering why you can't see it in core_string.mli, it's because
at the top of that file we say "include Container.S0". If you're
wondering why it's not in the OCamlDocs documentation, the reason is
similar: you should be able to click on the Container link near the
top of the page to see that signature. (That being said, OCamlDocs
doesn't cope too well with webs of includes and functors, so I
wouldn't be totally surprised if this didn't work completely well.)
Reply all
Reply to author
Forward
0 new messages