add std/functions.nix

This commit is contained in:
Emile Clark-Boman 2026-01-15 11:44:05 +10:00
parent 81c83621d7
commit 86711856c3
2 changed files with 11 additions and 1 deletions

View file

@ -1,11 +1,12 @@
{...} @ args: let
attrs = import ./attrs.nix args;
functions = import ./functions.nix args;
lists = import ./lists.nix args;
trivial = import ./trivial.nix args;
in
attrs.mergeAttrsList [
# submodule is included directly to this module (ie self.myFunc)
attrs
functions
lists
trivial
]

9
nib/std/functions.nix Normal file
View file

@ -0,0 +1,9 @@
{nib, ...}: let
inherit
(nib.std)
min
;
in {
# yeah fuck the waiter!! it was cold anyways :(
flipCurry = f: a: b: f b a;
}