Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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
( 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