Map (higher-order function): Difference between revisions

Content deleted Content added
No edit summary
Language comparison: Consolidated paragraphs; typo
Line 14:
==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. In [[Common Lisp]], there is a whole family of map-like functions. The one that corresponds to the behaviour described here is called mapcar. In C++'s standard library, the map function is called <code>transform</code>.
 
In [[Common Lisp]], there is a whole family of map-like functions. The one that corresponds to the behaviour described here is called mapcar.
 
In C++'s standard library, the map function is called <code>transform</code>
 
==Haskell's Functor class==