# `MutagenEx.Mutators.ResultTuple`
[🔗](https://github.com/iautom8things/mutagen_ex/blob/v0.2.0/lib/mutagen_ex/mutators/result_tuple.ex#L1)

Flips `{:ok, x}` and `{:error, x}` tagged tuples.

Per `mutagen.mutators` catalog entry 8.

Two-element tagged tuples in Elixir source parse as the 2-tuple literal
`{:ok, x}` — i.e. an Elixir tuple value, NOT a `{form, meta, args}` AST
node. We match on that 2-element tuple shape directly.

## Swap

* `{:ok, x}` → `{:error, x}`
* `{:error, x}` → `{:ok, x}`

Fully symmetric: `mutate(mutate(node)) == node`.

## Validation

* `:structurally_invalid` — not a `{:ok, _}` or `{:error, _}` 2-tuple.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
