{ foldMap = (f: list: builtins.foldl' (acc: elem: acc // elem) {} (builtins.map f list)); }