str join for strings

Concatenate multiple strings into a single string, with an optional separator between each.

Signature

> str join {flags} (separator)

Parameters

  • separator: optional separator to use when creating string

Input/output types:

input output
list<any> string
string string

Examples

Create a string from input

> ['rsh', 'shell'] | str join
rsh

Create a string from input with a separator

> ['rsh', 'shell'] | str join '-'
rsh-shell