6 lines
199 B
Nix
6 lines
199 B
Nix
{ pkgs, ... }:
|
|
{
|
|
flatMap = (f: list: builtins.foldl' (acc: elem: acc // elem) {} (builtins.map f list));
|
|
flatMapS = (f: list: builtins.foldl' (acc: elem: acc + elem) "" (builtins.map f list));
|
|
}
|