Open kozross opened 8 years ago
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?
transpose
I wanna 'invert' a table of values, as described best by the code snippet below:
I was suggested to use
transpose
, but it doesn't appear to exist in classy-prelude. Is there an equivalent to this operation?