Skip to content
Matthias Görges edited this page Jun 1, 2015 · 1 revision

#(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))
Clone this wiki locally