We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The __array__ method can be defined in combination with __length__ to allow additional types to be used with the each-in loop.
__array__
__length__
each-in
func __array__(this *MyArrayLike) *$T { }
The return value is a primitive array pointer, where $T is the element type.
$T
The returned pointer must remain valid until the subject value is destroyed or modified.
Table of Contents