improve getAttrOr arg order
This commit is contained in:
parent
382ae56432
commit
6c5e5fd880
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ in rec {
|
||||||
|
|
||||||
hasAttrs = list: xs: all (x: hasAttr x xs) list;
|
hasAttrs = list: xs: all (x: hasAttr x xs) list;
|
||||||
|
|
||||||
getAttrOr = name: xs: default:
|
getAttrOr = default: name: xs:
|
||||||
if hasAttr name xs
|
if hasAttr name xs
|
||||||
then getAttr name xs
|
then getAttr name xs
|
||||||
else default;
|
else default;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue