Suppose I have imported std.algorithm.BinaryHeapand want to call its method removeAnysomething else (for example, delete_min). If I imported a method from std.algorithmmyself, I could write something like this:
import std.algorithm: removeAny;
alias delete_min = removeAny;
However, I obviously cannot do this because it removeAnyis a method BinaryHeap. How can I use it somehow else?
source
share