Hi,
I'm a new OCaml user. I installed OCaml 4.10 and Base / Core_kernel / Core v0.13.0 via opam.
I'm trying to use the Pairing heap or hash heap from Core_kernel. I found the source for each on GitHub:
But I don't see them listed in the API documentation for Core_kernel:
I tried to modify some code from the Pairing_heap benchmark and run into error saying that Pairing_heap module is missing:
open Core
open Stdio
let create_heap size =
let h = Pairing_heap.create ~cmp:Int.compare () in
for i = 1 to size do
Heap.add h i
done
let () = Stdio.Out_channel.output_string stdout "Hello, world!\n"
5 | let h = Pairing_heap.create ~cmp:Int.compare () in
^^^^^^^^^^^^^^^^^^^
Error: Unbound module Pairing_heap
So, a couple of questions:
1. Why aren't Pairing_heap and Hash_heap listed in the API documentation?
2. Is there any I should look into to help me figure out why I can't import the heaps?
Thank you in advance!
RJ