Creates a new string made of fragments contained in the specified vector or array and delimited with the substring specified in the separator parameter.

Parameters:

strings

An array or vector containing the fragments to be merged.

The elements contained in the specified array or vector are not required to be String objects. Actually, what is taken from each element is the string returned by the call element.toString().

If an element is null, it is simply ignored.

separator
The separator substring.

If this parameter is not specified, the separator will be empty string.

last_separator
When specified, this will be the separator used at the last separator position.

This may be useful to form human language sentences containing enumerations. For example, the sentence:

I speak English, French, Italian and German.
can be created with the following expression:

"I speak " + 
mergeStrings (
  Vector (
    "English",
    "French",
    "Italian",
    "German"
  ),
  ", ",
  " and "
)
See Also:
breakString()
Examples:

The following expression

a = Array ("Veni", "vidi", "vici");
mergeStrings (a, " -> ");
will return string:
"Veni -> vidi -> vici"
The call
mergeStrings (Vector (1,2,3), ",");
will return:
"1,2,3"