Created
September 4, 2022 21:47
-
-
Save rugyoga/d57f40029d4b2fd2dfa7ba977e37a132 to your computer and use it in GitHub Desktop.
Three argument version of delta.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@spec delta(path(), any(), any()) :: delta_spec() | |
defp delta(path, a, b) when is_struct(a) and is_struct(b), do: delta_struct(path, a, b) | |
defp delta(path, a, b) when is_map(a) and is_map(b), do: delta_map(path, a, b) | |
defp delta(path, a, b) when is_list(a) and is_list(b), do: delta_list(path, a, b) | |
defp delta(path, a, b) when is_tuple(a) and is_tuple(b), do: delta_tuple(path, a, b) | |
defp delta(path, a, b), do: delta_simple(path, a, b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment