lib: attrs: add genAttrs' function
This commit is contained in:
parent
825e09f59e
commit
b30d574069
|
@ -4,4 +4,6 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
mapFilterAttrs = pred: f: attrs: filterAttrs pred (mapAttrs' f attrs);
|
mapFilterAttrs = pred: f: attrs: filterAttrs pred (mapAttrs' f attrs);
|
||||||
|
|
||||||
|
genAttrs' = values: f: listToAttrs (map f values);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue