dotimes

(dotimes (var num) form ...)


Description:

A form that calls forms num times incrementing the variable var from 0 to num - 1


Arguments:

           form -- one or more forms

            num -- number of times forms are evaulated

            var -- a variable to be used in any form


Returns: last form evaluated


Examples:

(dotimes (i 5)

   (print i)

   (print (* i i)))



Back to index