X-Git-Url: http://git.euphorik.ch/?p=master-thesis.git;a=blobdiff_plain;f=Parasitemia%2FParasitemiaCore%2FHeap.fs;h=c23cdbbcb652e05182f0d9b4b8421d47d05dc283;hp=e4230ebbbf26960b8a9970634e3052fecde5cac7;hb=97c24aa168f06f507fdff79429038d78a2c33326;hpb=f765276ea9abd8be286a17fae45509dde749812b diff --git a/Parasitemia/ParasitemiaCore/Heap.fs b/Parasitemia/ParasitemiaCore/Heap.fs index e4230eb..c23cdbb 100644 --- a/Parasitemia/ParasitemiaCore/Heap.fs +++ b/Parasitemia/ParasitemiaCore/Heap.fs @@ -13,6 +13,10 @@ type private Node<'k, 'v> = new (k, v) = { key = k; value = v } override this.ToString () = sprintf "%A -> %A" this.key this.value +/// +/// An heap min or max depending of the comparer. +/// The goal is to have a set of data and be able to get the value associated with the min (or max) key. +/// type Heap<'k, 'v> (kComparer : IComparer<'k>) = let a = List>()