Previous: MAPVECTOR and friends, Up: MAPCAR-like Functions


3.2.5 mapt/maptimes/maptcon and mapt*/maptimes*/maptcon*

— Function: mapt function count ⇒ count
— Function: maptimes function count ⇒ result-list
— Function: maptcon function count ⇒ concatenated-results

These are somewhat analogous to mapc, mapcar and mapcan, respectively, but for integers. The difference is that a count argument is expected instead of one or several lists. function will be called count times with integers from 0 to count - 1 in succession.

Support for specifying a starting integer other than 0 and stepping other than +1 might be added in the future.

— Function: mapt* function count ⇒ count
— Function: maptimes* function count ⇒ result-list
— Function: maptcon* function count ⇒ concatenated-results

Analogous to the non-starred versions above, but function takes no arguments.