forked from mirrors/nixpkgs
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 a new issue