Functional Programming - Map

1 - About

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.

3 - Example

from the map function of a javascript array

  • 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);


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap