# `Moar.Difference`
[🔗](https://github.com/synchronal/moar/blob/main/lib/difference.ex#L1)

A protocol that defines `diff/2` for finding the difference between two terms.

Includes implementations for `DateTime`, `NaiveDateTime`, and `BitString`.

# `t`

```elixir
@type t() :: term()
```

All the types that implement this protocol.

# `diff`

```elixir
@spec diff(any(), any()) :: any()
```

Returns the difference between `a` and `b`.

The fallback implementation uses `Kernel.-/2` to subtract `b` from `a`.

---

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