From aeee0a3fbde0751a653b9dd912fa9a482f14b72f Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Tue, 27 Jan 2026 12:45:10 +1000 Subject: [PATCH] rename flipCurry -> flip --- nt/primitives/bootstrap/std/attrs.nix | 4 ++-- nt/primitives/bootstrap/std/fn.nix | 2 +- nt/primitives/nt.nix | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nt/primitives/bootstrap/std/attrs.nix b/nt/primitives/bootstrap/std/attrs.nix index a33d590..32339c8 100644 --- a/nt/primitives/bootstrap/std/attrs.nix +++ b/nt/primitives/bootstrap/std/attrs.nix @@ -17,7 +17,7 @@ inherit (this) - flipCurry + flip id ; in rec { @@ -67,7 +67,7 @@ in rec { next = parts.wrong; in xs - |> flipCurry removeAttrs here + |> flip removeAttrs here |> mapAttrs (name: if ! elem name next then id diff --git a/nt/primitives/bootstrap/std/fn.nix b/nt/primitives/bootstrap/std/fn.nix index 5c6014c..c84d845 100644 --- a/nt/primitives/bootstrap/std/fn.nix +++ b/nt/primitives/bootstrap/std/fn.nix @@ -1,6 +1,6 @@ {...}: { id = x: x; - flipCurry = f: a: b: f b a; + flip = f: a: b: f b a; # not sure where else to put this... nullOr = f: x: diff --git a/nt/primitives/nt.nix b/nt/primitives/nt.nix index cf249e9..9e8701a 100644 --- a/nt/primitives/nt.nix +++ b/nt/primitives/nt.nix @@ -15,7 +15,7 @@ inherit (this.std) - flipCurry + flip removeAttrsRec ; @@ -70,7 +70,7 @@ # XXX: TODO: having to specify the full namespace sucks :( - matches = partition (flipCurry hasAttrAt ops) reqPaths; + matches = partition (flip hasAttrAt ops) reqPaths; pathsMissing = matches.wrong; opsSelf = removeAttrsRec matches.right ops;