diff --git a/pkgs/lib/trivial.nix b/pkgs/lib/trivial.nix index 35e4f3ee9f9d..aaae36afa058 100644 --- a/pkgs/lib/trivial.nix +++ b/pkgs/lib/trivial.nix @@ -15,6 +15,7 @@ rec { # Take a function and evaluate it with its own returned value. fix = f: let result = f result; in result; - # Flip argument order - flip = f: x: y: f y x; + # Flip the order of the arguments of a binary function. + flip = f: a: b: f b a; + }