Documentation

strings.joinStr() function

Flux 0.18.0+

The strings.joinStr() function concatenates elements of a string array into a single string using a specified separator.

Output data type: String

import "strings"

strings.joinStr(arr: ["a", "b", "c"], v: ",")

// returns "a,b,c"

Parameters

arr

The array of strings to concatenate.

v

The separator to use in the concatenated value.

Examples

Join a list of strings into a single string
import "strings"

searchTags = ["tag1", "tag2", "tag3"]

strings.joinStr(arr: searchTags, v: ","))

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.