# `Machete.IndifferentAccessMatcher`
[🔗](https://github.com/mtrudel/machete/blob/main/lib/machete/matchers/indifferent_access_matcher.ex#L1)

Defines a matcher that matches indifferently (that is, it considers similar atom and string keys
to be equivalent)

# `t`

```elixir
@opaque t()
```

Describes an instance of this matcher

# `indifferent_access`

```elixir
@spec indifferent_access(map()) :: t()
```

Defines a matcher that matches indifferently (that is, it considers similar atom and string keys
to be equivalent)

Takes a map as its sole (mandatory) argument

Examples:

    iex> assert %{a: 1} ~> indifferent_access(%{a: 1})
    true

    iex> assert %{"a" => 1} ~> indifferent_access(%{"a" => 1})
    true

    iex> assert %{a: 1} ~> indifferent_access(%{"a" => 1})
    true

    iex> assert %{"a" => 1} ~> indifferent_access(%{a: 1})
    true

    iex> assert %{1 => 1} ~> indifferent_access(%{1 => 1})
    true

---

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