query
On this page

join

lib.strings.join

Primop
Docs pulled from | This Revision | about 1 hour ago


Nixpkgs manual

Concatenates a list of strings with a separator between each element.

Inputs

sep
Separator to add between elements
list
List of strings that will be joined

Type

join :: String -> [String] -> String

Examples

lib.strings.join usage example

join ", " ["foo" "bar"]
=> "foo, bar"

Noogle detected

Aliases

Implementation

This function is implemented in c++ and is part of the native nix runtime.

Implementation

The following is the current implementation of this function.

join = builtins.concatStringsSep;