Merge pull request #273467 from adisbladis/lib-pipe-no-let

lib.pipe: Avoid creating a scope

authored by Silvan Mosberger and committed by GitHub 581adae8 e8637912

+1 -3
+1 -3
lib/trivial.nix
··· 70 of the next function, and the last function returns the 71 final value. 72 */ 73 - pipe = val: functions: 74 - let reverseApply = x: f: f x; 75 - in builtins.foldl' reverseApply val functions; 76 77 # note please don’t add a function like `compose = flip pipe`. 78 # This would confuse users, because the order of the functions
··· 70 of the next function, and the last function returns the 71 final value. 72 */ 73 + pipe = builtins.foldl' (x: f: f x); 74 75 # note please don’t add a function like `compose = flip pipe`. 76 # This would confuse users, because the order of the functions