query
On this page

join

lib.strings.join

Primop
Docs pulled from | This Revision | about 2 hours ago

Takes 2 arguments

separator, list


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;