22 ms·
A simple way to do this is to: MyNestedMaxHeap(T, Ord) = MaxHeap(MaxHeap(T, Ord), Ord) such that when using MyNestedMaxHeap only one Ord type can be passed.
by volta83 5y ago
A simple way to do this is to:
MyNestedMaxHeap(T, Ord) = MaxHeap(MaxHeap(T, Ord), Ord)
such that when using MyNestedMaxHeap only one Ord type can be passed.