Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a list transpose() method to perform a matrix transpose #56

Closed
jaccomoc opened this issue Jan 10, 2024 · 0 comments
Closed

Provide a list transpose() method to perform a matrix transpose #56

jaccomoc opened this issue Jan 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jaccomoc
Copy link
Owner

The transpose method should perform the equivalent of a matrix transpose which swaps columns and rows.
E.g.:

[ [1,2], [3,4], [5,6] ].transpose()

results in:

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

If any of the input lists is shorter than the others then null can be used to supply the missing values.

@jaccomoc jaccomoc added the enhancement New feature or request label Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant