Skip to content

Expose the original version of ArrayObject's getArrayCopy#5

Merged
brianlmoon merged 1 commit intomainfrom
expose_arrayobject_getarraycopy
Dec 2, 2025
Merged

Expose the original version of ArrayObject's getArrayCopy#5
brianlmoon merged 1 commit intomainfrom
expose_arrayobject_getarraycopy

Conversation

@jearle-dealnews
Copy link
Collaborator

If I want to sort the TypedArray (without using some of the built-in sorting methods from ArrayObject), I would have to call Class::getArrayCopy(), sort, and then convert all of my items in the sorted array back to their original objects. Exposing the original getArrayCopy() saves me from having to do that.

I'm open to alternative names for the method, though.

…poses of sorting without needing to turn arrays in the resulting array output back into the objects they originally were
@brianlmoon brianlmoon merged commit 9211544 into main Dec 2, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments