Octopus_Carnival/hosaka/hashset.ml

15 lines
266 B
OCaml
Raw Normal View History

2019-08-13 23:55:50 +02:00
open Hashtbl;;
(* This is a mess but I need sets for memoization.
* This is my best effort as of now *)
(* let null = ()
*
* let s = Hashtbl.create 1024
*
* let add key =
* Hashtbl.add s key null;
* false
*
* let has key =
* Hashtbl.mem s key *)