Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

#(listlist-map m ll) listlist-map applies a mapping to a list of lists.

Parameter Description
m The mapping function
ll The list of lists

Example

Example 1: Square each element in a list of lists.

> (define lst (list (list 1 2 3) (list 3 4 5)))
> (listlist-map (lambda (l) (* l l)) lst)
((1 4 9) (9 16 25))
Clone this wiki locally