mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
Try to add missing flip function for NixOS
svn path=/nixpkgs/trunk/; revision=17933
This commit is contained in:
parent
59613ffe56
commit
a9a462f13d
@ -15,4 +15,6 @@ 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user