about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-10-23 07:34:56 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-10-23 07:34:56 +0000
commita565a82e4e6d1cde94c449cd157fc4cb6f97ba8a (patch)
tree68661f38e289eb8e77b4832c805505c40ac31c9e
parenta9a462f13d95163a6364f1817eba2930cab43a21 (diff)
svn path=/nixpkgs/trunk/; revision=17934
-rw-r--r--pkgs/lib/trivial.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/lib/trivial.nix b/pkgs/lib/trivial.nix
index 35e4f3ee9f9d0..aaae36afa058f 100644
--- a/pkgs/lib/trivial.nix
+++ b/pkgs/lib/trivial.nix
@@ -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;
+
 }