From 753629714cd3344cd1002e64f4fb3dfd5b4ab146 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 13 Oct 2016 21:18:40 +0200 Subject: krebs lib: move {eq,ne,mod} to lib --- lib/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/default.nix b/lib/default.nix index 6c607f1..1f50108 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -1,6 +1,10 @@ let lib = import // builtins // { shell = import ./shell.nix { inherit lib; }; + + eq = x: y: x == y; + ne = x: y: x != y; + mod = x: y: x - y * (x / y); }; in -- cgit v1.2.3