Docs Clarify Array.fill behavior when reference type is passed in

This commit is contained in:
kleonc 2022-10-31 17:08:32 +01:00 committed by Relintai
parent 799a6e334f
commit 3ee1c2b58c

View File

@ -198,6 +198,7 @@
array.resize(10) array.resize(10)
array.fill(0) # Initialize the 10 elements to 0. array.fill(0) # Initialize the 10 elements to 0.
[/codeblock] [/codeblock]
[b]Note:[/b] If [code]value[/code] is of a reference type ([Object]-derived, [Array], [Dictionary], etc.) then the array is filled with the references to the same object, i.e. no duplicates are created.
</description> </description>
</method> </method>
<method name="find"> <method name="find">