Merge pull request #92737 from AThousandShips/packed_erase

[Core] Expose `Packed*Array::erase`
This commit is contained in:
Thaddeus Crews
2025-03-10 10:01:06 -05:00
11 changed files with 85 additions and 0 deletions

View File

@ -82,6 +82,13 @@
Creates a copy of the array, and returns it.
</description>
</method>
<method name="erase">
<return type="bool" />
<param index="0" name="value" type="String" />
<description>
Removes the first occurrence of a value from the array and returns [code]true[/code]. If the value does not exist in the array, nothing happens and [code]false[/code] is returned. To remove an element by index, use [method remove_at] instead.
</description>
</method>
<method name="fill">
<return type="void" />
<param index="0" name="value" type="String" />