4 lines
94 B
Nix
4 lines
94 B
Nix
{
|
|
foldMap = (f: list: builtins.foldl' (acc: elem: acc // elem) {} (builtins.map f list));
|
|
}
|