Map (higher-order function): Difference between revisions

Content deleted Content added
link to CAR and CDR from mapcar re Lisp
Line 13:
 
==Language comparison==
The map function is especially common in [[functional programming]] languages, but some [[high-level programming language|high-level]] [[procedural programming|procedural]] languages support it as well, and in others it may be defined. [[Common Lisp]] provides a whole family of map-like functions. The one that corresponds to the behavior described here is called <code>mapcar</code>, where the <code>-car</code> designation indicates access using the [[CAR and CDR|CAR operation]]. In [[C++]]'s [[Standard Template Library]], the map function is called <code>transform</code>.
 
==Optimizations==