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