Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* basic question about Functors
@ 2009-12-22 22:48 Keith Sheppard
  2009-12-22 23:38 ` [Caml-list] " Eric Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Keith Sheppard @ 2009-12-22 22:48 UTC (permalink / raw)
  To: caml-list

Hello,

I'm still figuring out OCaml syntax and I have a very basic question.
I've looked through the Functors section of the ocaml tutorial
(http://www.ocaml-tutorial.org/modules) and so I see how I can declare
a StringMap like:

> module StringMap = Map.Make(String);;

Now I can define a function like:

> remove_fish = StringMap.remove "fish"

What I'm confused about is what type signature I can use in the mli
file if I want to make the remove_fish function public...

Thanks in advance
Keith


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-12-22 23:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-22 22:48 basic question about Functors Keith Sheppard
2009-12-22 23:38 ` [Caml-list] " Eric Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox