> For the complete documentation index, see [llms.txt](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/task/map.md).

# map

Namespace: `FsToolkit.ErrorHandling`

Apply a function to the value of a task.

## Function Signature

```fsharp
('input-> 'output) -> Task<'input> -> Task<'output>
```

## Examples

### Example 1

```fsharp
Task.map (fun x -> x + 1) (Task.singleton 1)

// task { 2 }
```
