concatStringsSep
builtins.concatStringsSep
Primop
Docs pulled from | This Revision | about 1 hour ago
Takes 2 arguments
separator, list
Concatenate a list of strings with a separator between each element
Inputs
sep
- Separator to add between elements
list
- List of input strings
Type
concatStringsSep :: string -> [string] -> string
Examples
lib.strings.concatStringsSep
usage example
concatStringsSep "/" ["usr" "local" "bin"]
=> "usr/local/bin"
This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.
Noogle detected
Implementation
This function is implemented in c++ and is part of the native nix runtime.