# `Igniter.Code.Tuple`
[🔗](https://github.com/ash-project/igniter/blob/v0.8.3/lib/igniter/code/tuple.ex#L5)

Utilities for working with tuples.

# `append_elem`

```elixir
@spec append_elem(Sourceror.Zipper.t(), quoted :: Macro.t()) ::
  {:ok, Sourceror.Zipper.t()} | :error
```

Appends `quoted` to the elem

# `elem_equals?`

```elixir
@spec elem_equals?(Sourceror.Zipper.t(), elem :: non_neg_integer(), value :: term()) ::
  boolean()
```

# `tuple?`

```elixir
@spec tuple?(Sourceror.Zipper.t()) :: boolean()
```

Returns `true` if the zipper is at a literal tuple, `false` if not.

# `tuple_elem`

```elixir
@spec tuple_elem(Sourceror.Zipper.t(), elem :: non_neg_integer()) ::
  {:ok, Sourceror.Zipper.t()} | :error
```

Returns a zipper at the tuple element at the given index, or `:error` if the index is out of bounds.

---

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