Atom

text.join()

Joins iterated text values.

Signature

text.join(iterable, separator)

Parameters

Iterable whose elements are text, and separator text.

Returns

String.

Behavior

Uses the input's iteration order.

Errors

Noniterable input or nontext element.

Example

Atom
use text
assert(text.join(['a', 'b'], '/') == 'a/b')