|
definition: |
transpose :: [[a]] -> [[a]] transpose [] = [] transpose ([] : xss) = transpose xss transpose ((x:xs) : xss) = (x : map head xss) : transpose (xs : map tail xss) |
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
Transposes the rows and columns of the argument. Example: `(transpose [[1,2,3],[4,5,6]]) = [[1,4],[2,5],[3,6]]` |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({[]}) |-> {[]} || ({:}) |-> {:,[]}}
|
|
name: |
transpose |
|
precedence: |
no precedence defined |
|
result-values: |
{:,[]}
|
|
signature: |
[[a]] -> [[a]] |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |