Skip to content

stacking array without copying #1176

@daniellga

Description

@daniellga

Hi! Having an array like [0, 1, 2, 3, 4, 5, 6], is it possible to create an array like the one below, without cloning the original (thus I want an ArrayView)?

[[0, 2, 4],
 [1, 3, 5],
 [2, 4, 6]]

Note that the result is just a combination (stack) of views from the first array, taking a step of 2 between each element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions