strings.joinStr() function

Warning! This page documents an earlier version of Flux, which is no longer actively developed. Flux v0.50 is the most recent stable version of Flux.

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.

Data type: Array of strings

v

The separator to use in the concatenated value.

Data type: String

Examples

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

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

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