Skip to content

Equivalent to transpose in classy-prelude? #115

@kozross

Description

@kozross

I wanna 'invert' a table of values, as described best by the code snippet below:

 - I have

t :: [[Text]]
t = [["1", "2"], ["a", "b"], ["A", "B"]]

-- I want

t' :: [[Text]]
t' = [["1", "a", "A"], ["2", "b", "B"]]

I was suggested to use transpose, but it doesn't appear to exist in classy-prelude. Is there an equivalent to this operation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions