# map3

Namespace: `FsToolkit.ErrorHandling`

Apply a function to the values of three options if they are `Some`. If any option is `None`, return `None`.

## Function Signature

```fsharp
('TInput1 -> 'TInput2 -> 'TInput3 -> 'TOutput) -> 'TInput1 option -> 'TInput2 option -> 'TInput3 option -> 'TOutput option
```

## Examples

### Example 1

```fsharp
Option.map3 (fun x y z -> x + y + z) (Some 1) (Some 2) (Some 3)

// Some 6
```

### Example 2

```fsharp
Option.map3 (fun x y z -> x + y + z) (Some 1) (Some 2) None

// None
```

### Example 3

```fsharp
Option.map3 (fun x y z -> x + y + z) (Some 1) None (Some 3)

// None
```

### Example 4

```fsharp
Option.map3 (fun x y z -> x + y + z) None (Some 2) (Some 3)

// None
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://demystifyfp.gitbook.io/fstoolkit-errorhandling/fstoolkit.errorhandling/option/map3.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
