mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-08 06:33:54 +00:00
fix(lint): nixfmt the whole tree
This commit is contained in:
parent
643b136863
commit
bf219a30c2
69 changed files with 2605 additions and 1726 deletions
18
lib/math.nix
18
lib/math.nix
|
|
@ -1,12 +1,16 @@
|
|||
{lib
|
||||
, myLib
|
||||
{
|
||||
lib,
|
||||
myLib,
|
||||
}:
|
||||
|
||||
rec {
|
||||
log2 = let
|
||||
mylog = x: y: if (x >= 2) then mylog (x / 2) (y + 1) else y;
|
||||
in x: mylog x 0;
|
||||
log2 =
|
||||
let
|
||||
mylog = x: y: if (x >= 2) then mylog (x / 2) (y + 1) else y;
|
||||
in
|
||||
x: mylog x 0;
|
||||
|
||||
clamp = min_x: max_x: x: lib.min ( lib.max x min_x ) max_x;
|
||||
clamp =
|
||||
min_x: max_x: x:
|
||||
lib.min (lib.max x min_x) max_x;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue