Skip to content

Support slicing ListView #18351

Description

@brancz

Is your feature request related to a problem or challenge?

ListView does not support array_slice, yet, like List does.

Describe the solution you'd like

Shouldn't be terribly complicated since it would all be operations on the offsets and sizes. Note, some care has to be taken to work correctly eg. in the case where a ListView was previously reversed (#18350).

Describe alternatives you've considered

Same as #18350: Cast to List instead, however, based on some profiling we've done in the other direction (converting List to ListView), this is a terrible idea.

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions