am i stupid?
This commit is contained in:
parent
77322d65e4
commit
7d47d4aa4e
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ in rec {
|
||||||
|
|
||||||
# Alternative to mapAttrsRecursive
|
# Alternative to mapAttrsRecursive
|
||||||
# NOTE: refuses to go beyond Terminal types
|
# NOTE: refuses to go beyond Terminal types
|
||||||
recmap = recmapCond (_: leaf: !isTerminal leaf);
|
recmap = recmapCond (_: leaf: !(isTerminal leaf));
|
||||||
|
|
||||||
mergeStructsCond = cond: f: base: ext:
|
mergeStructsCond = cond: f: base: ext:
|
||||||
recmapCond
|
recmapCond
|
||||||
|
|
@ -93,7 +93,7 @@ in rec {
|
||||||
# NOTE: respects Terminal types
|
# NOTE: respects Terminal types
|
||||||
mergeStructs =
|
mergeStructs =
|
||||||
mergeStructsCond
|
mergeStructsCond
|
||||||
(_: leaf: !isTerminal leaf)
|
(_: leaf: !(isTerminal leaf))
|
||||||
(leaf:
|
(leaf:
|
||||||
if isTerminal leaf
|
if isTerminal leaf
|
||||||
then unwrapTerminal leaf
|
then unwrapTerminal leaf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue