perform(Cmd, Decisions, Slot_out, Database) ->
{Client, Cid, Op} = Cmd,
Is_member = lists:member(maps:values(maps:with(lists:seq(1, Slot_out - 1), Decisions)),
if
Is_member == true ->
nothing;
true ->
87 Database ! {execute, Op},
88 Client ! {response, Cid, ok}
89 end,
90 Slot_out + 1.
在erlang中我写了这样的代码,但总是有错误。
90:syntax error before: '.'
任何人都知道如何解决它?非常感谢你!
答案 0 :(得分:1)
错过了此行的结束括号")"
Is_member = lists:member(maps:values(maps:with(lists:seq(1, Slot_out - 1), Decisions)),
它应该是:
Is_member = lists:member(maps:values(maps:with(lists:seq(1, Slot_out - 1), Decisions))),