text

The text module offers a toolkit for manipulating strings.

docs-source (opens in a new tab)

TraitValue
Module typealgorithm
ImplementationC++
Parallelismsequential

Procedures

join(strings, delimiter)

Joins all the strings into a single one with the given delimiter between them.

Input:

  • strings: List[string] ➡ list of strings to be joined.
  • delimiter: string ➡ string to be inserted between the given strings.

Output:

  • string: string ➡ the joined string.

Usage:

CALL text.join(["idora", " ", "ivan", "", "matija"], ",") YIELD string RETURN string;
+----------------------------+
| string                     |
+----------------------------+
| "idora, ,ivan,,matija"     |
+----------------------------+