From: Keith Sheppard <keithshep@gmail.com>
To: caml-list@yquem.inria.fr
Subject: basic question about Functors
Date: Tue, 22 Dec 2009 17:48:57 -0500 [thread overview]
Message-ID: <92e42b740912221448s54594cbbpf65076b3b2e3fa7a@mail.gmail.com> (raw)
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
next reply other threads:[~2009-12-22 22:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-22 22:48 Keith Sheppard [this message]
2009-12-22 23:38 ` [Caml-list] " Eric Cooper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=92e42b740912221448s54594cbbpf65076b3b2e3fa7a@mail.gmail.com \
--to=keithshep@gmail.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox