> For the complete documentation index, see [llms.txt](https://gabriel-schade-cardoso.gitbook.io/tango/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gabriel-schade-cardoso.gitbook.io/tango/modules/collection/map.md).

# Map

Builds a new collection whose elements are the results of applying the given `mapping` function to each of the elements of the collection.

It works just like [`Select`](https://msdn.microsoft.com/pt-br/library/system.linq.enumerable.select%28v=vs.110%29.aspx) method of [`System.Linq`](https://msdn.microsoft.com/pt-br/library/system.linq%28v=vs.110%29.aspx).

| Parameters                                                    | Returns               |
| ------------------------------------------------------------- | --------------------- |
| <p>Func\<T, TResult> mapping</p><p>IEnumerable\<T> source</p> | IEnumerable\<TResult> |

## Usage

&#x20;**Multiplying the values by two**&#x20;

```csharp
//IEnumerable<int> source = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }

IEnumerable<int> result = source.Map(value => value * 2);

//result = { 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 }
```
