DylanMeeus / DylanMeeus/hasgo

Transpose()

Open
#34 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
144
Forks
11
PR merge metrics
No merged PRs in 30d

Description

The transpose function transposes the rows and columns of its argument. For example,

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

If some of the rows are shorter than the following rows, their elements are skipped:

>>> transpose [[10,11],[20],[],[30,31,32]]
[[10,20,30],[11,31],[32]]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.