type data = Data.t
type t = Node.t
let make = Node.make
- let node = Node.node
- let hash = Node.hash
+ let node x = x.Node.node
+ let hash x = x.Node.key
let equal = Node.equal
- let uid = Node.uid
+ let uid x= x.Node.id
let nil = Node.make Nil
let cons a b = Node.make (Cons(a,b))
let hd = function { Node.node = Cons(a,_) } -> a | _ -> failwith "hd"