lib: add on

This commit is contained in:
tv 2022-12-20 19:07:51 +01:00
parent 1081102c42
commit 212da58616
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ let
ne = x: y: x != y;
mod = x: y: x - y * (x / y);
on = b: u: x: y: b (u x) (u y);
genid = lib.genid_uint32; # TODO remove
genid_uint31 = x: ((lib.genid_uint32 x) + 16777216) / 2;
genid_uint32 = import ./genid.nix { inherit lib; };