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

scale scales a list by multiplying each element by a number.

Parameter Description
lst The list to be scaled
k The scaling factor

Example

Example 1: Scale a list by 5

> (scale '(1 2 3 4 5) 5)
(5 10 15 20 25)
Clone this wiki locally