Commit f056bfa
Use
Summary: Now that we have a `transform Filter`, let's use it instead of using `partition ByFilter |> ~f:(fun x -> if cond then None else Some false) |> (fun map -> Map.Poly.find map false)`. That is shorter and more efficient.
Reviewed By: dkgi
Differential Revision: D30758495
fbshipit-source-id: 4060ccce64119e8728c877cb9742d03f1f51d8e5transform Filter instead of partition ByFilter
1 parent e4feee6 commit f056bfa
1 file changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
570 | 564 | | |
571 | 565 | | |
572 | 566 | | |
| |||
619 | 613 | | |
620 | 614 | | |
621 | 615 | | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
627 | 619 | | |
628 | 620 | | |
629 | 621 | | |
| |||
0 commit comments