Top "Map-function" questions

A map function is a higher-order function that applies a function to each element in a list, building a list of the results.

map function for objects (instead of arrays)

I have an object: myObject = { 'a': 1, 'b': 2, 'c': 3 } I am looking for a native method, similar to Array.prototype.map …

javascript node.js functional-programming map-function
Understanding the map function

map(function, iterable, ...) Apply function to every item of iterable and return a list of the results. If additional iterable …

python map-function
Getting a map() to return a list in Python 3.x

I'm trying to map a list into hex, and then use the list elsewhere. In python 2.6, this was easy: A: …

python list python-3.x map-function
Mapping over values in a python dictionary

Given a dictionary { k1: v1, k2: v2 ... } I want to get { k1: f(v1), k2: f(v2) ... } provided I pass …

python dictionary map-function
List comprehension vs map

Is there a reason to prefer using map() over list comprehension or vice versa? Is either of them generally more …

python list-comprehension map-function
Java: is there a map function?

I need a map function. Is there something like this in Java already? (For those who wonder: I of course …

java map-function
Passing multiple parameters to pool.map() function in Python

I need some way to use a function within pool.map() that accepts more than one parameter. As per my …

python multiprocessing pool map-function
Are list-comprehensions and functional functions faster than "for loops"?

In terms of performance in Python, is a list-comprehension, or functions like map(), filter() and reduce() faster than a for …

python performance for-loop list-comprehension map-function
Function application over numpy's matrix row/column

I am using Numpy to store data into matrices. Coming from R background, there has been an extremely simple way …

python numpy map-function
Map function in MATLAB?

I'm a little surprised that MATLAB doesn't have a Map function, so I hacked one together myself since it's something …

matlab functional-programming map-function