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 3e1d6dd commit 82956d3Copy full SHA for 82956d3
src/Fp/Operations/MinByElementOperation.php
@@ -26,10 +26,10 @@ public function __invoke(callable $by): Option
26
* @param TV $l
27
* @return int
28
*/
29
- fn(mixed $r, mixed $l): int => $by($l) <=> $by($r);
+ fn(mixed $r, mixed $l): int => $by($r) <=> $by($l);
30
31
$gen = SortedOperation::of($this->gen)($f);
32
33
- return LastOperation::of($gen)();
+ return FirstOperation::of($gen)();
34
}
35
0 commit comments