lib: attrs: add genAttrs' function

This commit is contained in:
Bruno BELANYI 2021-04-03 17:11:55 +00:00
parent 825e09f59e
commit b30d574069

View file

@ -4,4 +4,6 @@ let
in
{
mapFilterAttrs = pred: f: attrs: filterAttrs pred (mapAttrs' f attrs);
genAttrs' = values: f: listToAttrs (map f values);
}