rename flipCurry -> flip
This commit is contained in:
parent
2aa45a9f6b
commit
aeee0a3fbd
3 changed files with 5 additions and 5 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
(this)
|
(this)
|
||||||
flipCurry
|
flip
|
||||||
id
|
id
|
||||||
;
|
;
|
||||||
in rec {
|
in rec {
|
||||||
|
|
@ -67,7 +67,7 @@ in rec {
|
||||||
next = parts.wrong;
|
next = parts.wrong;
|
||||||
in
|
in
|
||||||
xs
|
xs
|
||||||
|> flipCurry removeAttrs here
|
|> flip removeAttrs here
|
||||||
|> mapAttrs (name:
|
|> mapAttrs (name:
|
||||||
if ! elem name next
|
if ! elem name next
|
||||||
then id
|
then id
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{...}: {
|
{...}: {
|
||||||
id = x: x;
|
id = x: x;
|
||||||
flipCurry = f: a: b: f b a;
|
flip = f: a: b: f b a;
|
||||||
|
|
||||||
# not sure where else to put this...
|
# not sure where else to put this...
|
||||||
nullOr = f: x:
|
nullOr = f: x:
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
inherit
|
inherit
|
||||||
(this.std)
|
(this.std)
|
||||||
flipCurry
|
flip
|
||||||
removeAttrsRec
|
removeAttrsRec
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@
|
||||||
|
|
||||||
# XXX: TODO: having to specify the full namespace sucks :(
|
# XXX: TODO: having to specify the full namespace sucks :(
|
||||||
|
|
||||||
matches = partition (flipCurry hasAttrAt ops) reqPaths;
|
matches = partition (flip hasAttrAt ops) reqPaths;
|
||||||
|
|
||||||
pathsMissing = matches.wrong;
|
pathsMissing = matches.wrong;
|
||||||
opsSelf = removeAttrsRec matches.right ops;
|
opsSelf = removeAttrsRec matches.right ops;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue