X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=Parasitemia%2FParasitemiaCore%2FHeap.fs;h=c23cdbbcb652e05182f0d9b4b8421d47d05dc283;hb=cedd2809bf9f802e9c12102d30f63cf29f64442c;hp=e4230ebbbf26960b8a9970634e3052fecde5cac7;hpb=4bfa3cbdc6145e6944f02e24829ab2ef3a851ac1;p=master-thesis.git 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>()