View Source Ex2ms (ex2ms v1.7.0)

This module provides the Ex2ms.fun/1 macro for translating Elixir functions to match specifications.

Summary

Functions

Translates an anonymous function to a match specification.

Functions

Translates an anonymous function to a match specification.

Examples

iex> Ex2ms.fun do {x, y} -> x == 2 end
[{{:"$1", :"$2"}, [], [{:==, :"$1", 2}]}]