lib: attrs: add genAttrs' function

This commit is contained in:
Bruno BELANYI 2021-04-03 17:11:55 +00:00
parent f634f1b2ed
commit bd53470e46

View file

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