mirror of
https://github.com/NixOS/nix.git
synced 2024-12-02 11:42:30 +00:00
2e8fd4c5cd
This fixes the quadratic behaviour of concatStrings/concatStringsSep in Nixpkgs.
9 lines
202 B
Nix
9 lines
202 B
Nix
with builtins;
|
|
|
|
[ (concatStringsSep "" [])
|
|
(concatStringsSep "" ["foo" "bar" "xyzzy"])
|
|
(concatStringsSep ", " ["foo" "bar" "xyzzy"])
|
|
(concatStringsSep ", " ["foo"])
|
|
(concatStringsSep ", " [])
|
|
]
|