forked from mirrors/nixpkgs
Merge pull request #135843 from polykernel/concatstringssep-fix
lib/strings: fix infinite recursion on concatStringsSep fallback
This commit is contained in:
commit
dc596e50d8
|
@ -89,7 +89,7 @@ rec {
|
|||
=> "usr/local/bin"
|
||||
*/
|
||||
concatStringsSep = builtins.concatStringsSep or (separator: list:
|
||||
concatStrings (intersperse separator list));
|
||||
lib.foldl' (x: y: x + y) "" (intersperse separator list));
|
||||
|
||||
/* Maps a function over a list of strings and then concatenates the
|
||||
result with the specified separator interspersed between
|
||||
|
|
Loading…
Reference in a new issue