diff options
author | tv <tv@krebsco.de> | 2016-10-13 21:18:40 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-10-13 21:51:27 +0200 |
commit | 753629714cd3344cd1002e64f4fb3dfd5b4ab146 (patch) | |
tree | eddf21d967c1459322e45c1ecc2a951c59e7d029 /lib/default.nix | |
parent | e8baf98e409b528c87cb68841f1532ebf652ee2c (diff) |
krebs lib: move {eq,ne,mod} to lib
Diffstat (limited to 'lib/default.nix')
-rw-r--r-- | lib/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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 <nixpkgs/lib> // 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 |