diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-10 16:54:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 16:54:45 +0200 |
commit | 6a0473bcc23c096ef9ee929632a209761c2668f6 (patch) | |
tree | 49ac637624ad4d3410341aefb6d01e7c6d464f7b /doc/classes | |
parent | 94721f5ab8af9e7d91a4de58baf2c8d849ceab6e (diff) | |
parent | 8c2dc177b61e6c9bc1895a5046e229cad28052e5 (diff) |
Merge pull request #38548 from kuruk-mm/add_string_join_to_gdscript
GDScript: Add join method on String
Diffstat (limited to 'doc/classes')
-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> |