Import Upstream version 20180207
[hcoop/debian/mlton.git] / lib / mlton / heap / fibonacci.fun
CommitLineData
7f918cf1
CE
1(* Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh
2 * Jagannathan, and Stephen Weeks.
3 *
4 * MLton is released under a BSD-style license.
5 * See the file MLton-LICENSE for details.
6 *)
7
8functor FibonacciHeap(S: HEAP_STRUCTS): HEAP =
9struct
10
11open S
12
13structure Heap = ForestHeap(S)
14open Heap
15
16val new = newLazy
17
18val insert = insertLazy
19
20val decreaseKey = decreaseKeyCut
21
22val delete = deleteCut
23
24val union = unionLazy
25
26end