diff options
author | Mateo Kuruk Miccino <mateomiccino@gmail.com> | 2020-05-07 15:53:49 -0300 |
---|---|---|
committer | Mateo Kuruk Miccino <mateomiccino@gmail.com> | 2020-05-09 12:16:21 -0300 |
commit | 8c2dc177b61e6c9bc1895a5046e229cad28052e5 (patch) | |
tree | 7398c9cef9fb690d7c071729530b3b9e5e49e7d4 /doc | |
parent | 77e19d116efe0250863978c0df5bff55d2ef9af3 (diff) |
GDScript: Add join method on String
Docs: Add join on String.xml
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/String.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml index a72b8f05d8..03f62732c4 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -837,6 +837,19 @@ Returns a copy of the string with characters removed from the right. </description> </method> + <method name="join"> + <return type="String"> + </return> + <argument index="0" name="parts" type="PackedStringArray"> + </argument> + <description> + Return a [String] which is the concatenation of the [code]parts[/code]. The separator between elements is the string providing this method. + Example: + [codeblock] + print(", ".join(["One", "Two", "Three", "Four"])) + [/codeblock] + </description> + </method> <method name="sha1_buffer"> <return type="PackedByteArray"> </return> |