# Functional Programming - Map

A page about the map functional programming function

The map method creates a new collection with the results of calling a provided function on every element in the collection.

The map operation produces one output value per input value.

## Example

• An array of number that we want to double.
````const numbers = [1, 2, 3, 4, 5];`
```
``````const doubled = numbers.map((number) => number * 2);
console.log(doubled);```
```

Discover More
Code - Functional programming (FP) - Collection Operations

Functional programming (FP) defines standard operations on collections. It is a declarative paradigm that treats computation as the evaluation of mathematical functions. Most of the operations, you perform...
Functional Programming - Map

A page the map functional programming function The map method creates a new collection with the results of calling a provided function on every element in the collection. The map operation produces...
Javascript - Map function (Functional programming)

The functional programming function map in a Javascript context is only an array method as all functional programming javascript method. map With an Arrow function as argument Letters that we...
MapReduce - Map (Mapper)

The Map implementation in Hadoop in a application Mapper maps input key/value pairs to a set of intermediate key/value...
PHP - Functional Programming

in Php is based on : array_map trim all values of the array from the character “ output: Result : array_filter Filtering on key (by default, this is value) array_reduce array_walk...
Python - Map Function

The implementation in Python. Map transforms a series of elements by applying a function individually to each element in the series. It then returns the series of transformed elements. For the map...
Spark - (Map|flatMap)

The map implementation in Spark of map reduce. map(func) returns a new distributed data set that's formed by passing each element of the source through a function. flatMap(func) similar to map but...