Try to add missing flip function for NixOS
svn path=/nixpkgs/trunk/; revision=17933
This commit is contained in:
@@ -15,4 +15,6 @@ rec {
|
|||||||
# Take a function and evaluate it with its own returned value.
|
# Take a function and evaluate it with its own returned value.
|
||||||
fix = f: let result = f result; in result;
|
fix = f: let result = f result; in result;
|
||||||
|
|
||||||
|
# Flip argument order
|
||||||
|
flip = f: x: y: f y x;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user