svn path=/nixpkgs/trunk/; revision=17934

This commit is contained in:
Eelco Dolstra 2009-10-23 07:34:56 +00:00
parent a9a462f13d
commit a565a82e4e

View file

@ -15,6 +15,7 @@ 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;
# Flip the order of the arguments of a binary function.
flip = f: a: b: f b a;
}