# join

The `join` function concatenates multiple values into a single string, inserting a delimiter between each value.

It is useful for turning arrays or multiple values into a delimited string (for example, CSV-style output).

#### Syntax

`join(delimiter, values...)`

or as a chained function:

`<array>.join(delimiter)`

#### Arguments

* **delimiter** (`string`)\
  The string to insert between each value.
* **values** (`string | array[string]`)\
  The values to join. These can be provided as:
  * Multiple arguments
  * A single array
  * A chained array input

#### Examples

**Chained array input**

```bash
["a","b","c"].join(",")
```

**Output:**

```
a,b,c
```

**Variadic arguments**

```bash
join(",", "a", "b", "c")
```

**Output:**

```
a,b,c
```

**Array argument**

```bash
join(",", ["a", "b", "c"])
```

**Output:**

```
a,b,c
```

#### Notes

* All arguments given to join are expected to be strings. Dasel will not try to convert for you.
* The order of values is preserved.
* This function is commonly used for formatting output for shells, logs, or downstream tools.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://daseldocs.tomwright.me/functions/join.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
