Quantcast
Channel: Active questions tagged ocaml - Stack Overflow
Viewing all articles
Browse latest Browse all 527

Ocaml merge Hash tables

$
0
0

I would like to merge two same-type hash tables in Ocaml, so that the information of both of them gets stored in a single table. Imagine, something like:

  type tabType = (string, variable) Hashtbl.t  let tabExample:tabType = Hashtbl.create 1000 in  let tab1 = do_stuff tabExample a true in  let tab2 = do_stuff tabExample a false in  let tabFinal = tab1@tab2

Any idea?


Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>