This module provides the Ex2ms.fun/1 macro for translating Elixir functions to match specifications.
Ex2ms.fun/1
Translates an anonymous function to a match specification.
iex> Ex2ms.fun do {x, y} -> x == 2 end [{{:"$1", :"$2"}, [], [{:==, :"$1", 2}]}]