Closed
Description
Is there any interest in adding transpose
to arrays? Not sure what would be a good implementation but possibly something along the lines of:
transpose :: forall a. Array (Array a) -> Array (Array a)
transpose x =
case head x of
Just [_] ->
x
_ ->
(mapMaybe head x) : transpose (mapMaybe tail x)
Metadata
Metadata
Assignees
Labels
No labels