listlist transpose - part-cw/lambdanative GitHub Wiki
#(listlist-transpose lst) listlist-transpose transposes a list of lists
Parameter | Description |
---|---|
lst | The list of lists operated on |
Example
Example 1: Transpose a list (from 2 sublists of length 3, to 3 sublists of length 2)
> (define lst (list (list 1 2 3) (list 3 4 5)))
> (listlist-transpose lst)
((1 3) (2 4) (3 5))