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

make-list makes a list of n elements, where each element is set to elem.

Parameter Description
n Length of desired list
elem List element to be repeated n times

Example

Example 1: Make a list of 20 zeros

> (make-list 20 0)
(0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0)
Clone this wiki locally