Version française
Home     About     Download     Resources     Contact us    
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
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