text
The text
module offers a toolkit for manipulating strings.
Trait | Value |
---|---|
Module type | algorithm |
Implementation | C++ |
Parallelism | sequential |
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" |
+----------------------------+