:ets.fun2ms for Elixir, translate functions to match specifications