DarkMatter.Mfas (DarkMatter v1.1.4) View Source

Utils for working with mfa/0.

Link to this section Summary

Functions

Define a guard clause for working with mfa/0.

Define a check for pattern matching on mfa/0.

Link to this section Types

Link to this section Functions

Specs

is_mfa(any()) :: Macro.t()

Define a guard clause for working with mfa/0.

Examples

iex> is_mfa({Kernel, :+, 2})
true

iex> is_mfa([])
false

Specs

mfa?(any()) :: boolean()

Define a check for pattern matching on mfa/0.

Examples

iex> is_mfa({Kernel, :+, 2})
true

iex> is_mfa([])
false