English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
basic question about Functors
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-12-22 (22:49)
From: Keith Sheppard <keithshep@g...>
Subject: basic question about Functors

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