diff --git a/lib/trivial.nix b/lib/trivial.nix index a281cd70fb0e2c..05f928af6f785c 100644 --- a/lib/trivial.nix +++ b/lib/trivial.nix @@ -58,9 +58,8 @@ rec { of the next function, and the last function returns the final value. */ - pipe = val: functions: - let reverseApply = x: f: f x; - in builtins.foldl' reverseApply val functions; + pipe = let reverseApply = x: f: f x; in + builtins.foldl' reverseApply; /* note please don’t add a function like `compose = flip pipe`. This would confuse users, because the order of the functions in the list is not clear. With pipe, it’s obvious that it