From 709c5ed53f282693f1731aff8f0c8080dde872dc Mon Sep 17 00:00:00 2001
From: Sasan Hezarkhani
-4> ets:fun2ms(fun({M,N}) when N > X, is_atomm(M) -> M end). +4> ets:fun2ms(fun({M,N}) when N > X, my_fun(M) -> M end). Error: fun containing local Erlang function calls -('is_atomm' called in guard) cannot be translated into match_spec +('my_fun' called in guard) cannot be translated into match_spec {error,transform_error} 5> ets:fun2ms(fun({M,N}) when N > X, is_atom(M) -> M end). [{{'$1','$2'},[{'>','$2',{const,3}},{is_atom,'$1'}],['$1']}]-- cgit v1.2.3