Detokenize

Concatenates an array of strings, while adding a seperator between all pairs

Syntax

LOADLIB "wh::system.whlib";

STRING FUNCTION Detokenize(STRING ARRAY elements, STRING separator)

Parameters

STRING ARRAY elements

Strings to concatenate together

STRING separator

String to separate the concatenated strings with

Return value

STRING

String array with the concatenated tokens

Description

Detokenize concatenates a list of strings, and adds a seperator between all pairs of strings.

Examples

// returns "a-b-c-d-e"
STRING example1 := Detokenize(["a","b","c","d","e"], "-");

// returns "A&&B&&C&&D&&E"
STRING example2 := Detokenize(["A","B","C","D","E"], "&&");

// returns ""
STRING example3 := Detokenize(DEFAULT STRING ARRAY, "+");