Package: alexandria

Function map-iota

Lambda List

map-iota (function n &key start step)

Details

Calls function with n numbers, starting from start (with numeric contagion from step applied), each consequtive number being the sum of the previous one and step. start defaults to 0 and step to 1. Returns n.

Examples

 (map-iota #'print 3 :start 1 :step 1.0) => 3
   1.0
   2.0
   3.0