We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 508fde7 commit c1b2cb3Copy full SHA for c1b2cb3
lib/Algorithm/MinMaxHeap/CmpOperator.pm6
@@ -0,0 +1,14 @@
1
+use v6;
2
+
3
+unit module Algorithm::MinMaxHeap::CmpOperator;
4
5
+use Algorithm::MinMaxHeap::Comparable;
6
7
+multi sub infix:<minmaxheap-cmp>(Cool $lhs, Cool $rhs) is export {
8
+ return $lhs cmp $rhs;
9
+}
10
11
+multi sub infix:<minmaxheap-cmp>(Algorithm::MinMaxHeap::Comparable $lhs, Algorithm::MinMaxHeap::Comparable $rhs) returns Order:D is export {
12
+ return $lhs.compare-to($rhs);
13
14
0 commit comments