Add fill method to Arrays and PackedArrays

This commit is contained in:
Matheus Lima Cunha
2021-02-25 11:10:39 -03:00
parent e271dba9cb
commit efd27a63c1
14 changed files with 127 additions and 0 deletions

View File

@ -60,6 +60,15 @@
Creates a copy of the array, and returns it.
</description>
</method>
<method name="fill">
<return type="void">
</return>
<argument index="0" name="value" type="int">
</argument>
<description>
Assigns the given value to all elements in the array. This can typically be used together with [method resize] to create an array with a given size and initialized elements.
</description>
</method>
<method name="has">
<return type="bool">
</return>