python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
{aborted, {bad_type, {...} } on mnesia:write/3
Supressing irrelevant code, i've the following:
% somefile.erl
-record(task, {description, date, completed = false}).
init() ->
{atomic, _} = mnesia:create_table(task, [{attributes, record_info...

v1d3rm3
Votes: 0
Answers: 1
Convert Erlang code to elixir in mnesia delete function?
I need to convert this Erlang code to Elixir.
fun(OtpTemp, otp) when OtpTemp#otp.genenrated_time < time ->
[OtpTemp | otp];
(_, otp) ->
IO.i...
Hasantha Lakshan
Votes: 0
Answers: 1