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
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
If this parameter is not specified, the separator will be empty string.
last_separator
This may be useful to form human language sentences containing enumerations. For example, the sentence:
"I speak " +
mergeStrings (
Vector (
"English",
"French",
"Italian",
"German"
),
", ",
" and "
)
breakString()
The following expression
a = Array ("Veni", "vidi", "vici");
mergeStrings (a, " -> ");
"Veni -> vidi -> vici"
mergeStrings (Vector (1,2,3), ",");
"1,2,3"