Difference between revisions of "Implode"
From SCAR Divi Manual
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | function Implode(Glue: | + | function Implode(const Glue: string; const Pieces: TStrArray): string; |
</source> | </source> | ||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | Implodes a given [[ | + | Implodes a given [[TStrArray]] '''Pieces''' by joining all of the containing strings together into one [[string]] with the given string '''Glue''' as delimiter. |
==Example== | ==Example== |
Latest revision as of 18:33, 18 October 2012
Definition
function Implode(const Glue: string; const Pieces: TStrArray): string;
Availability
SCAR Divi 3.20 > Current
Description
Implodes a given TStrArray Pieces by joining all of the containing strings together into one string with the given string Glue as delimiter.
Example
begin WriteLn(Implode(' ', ['Hello', 'World!'])); end.
Output:
Hello World!