Skip to content

Instantly share code, notes, and snippets.

View sargun's full-sized avatar

Sargun Dhillon sargun

  • Netflix
  • United States
View GitHub Profile
%% State#state.users contains a riak_dt_orswot that's a list of online users,
%% How to transform the following into working code?
handle_handoff_command(?FOLD_REQ{foldfun=Fun, acc0=Acc0}, _Sender, State) ->
Acc = lists:foldl(Fun, Acc0, [State#state.users]),
{reply, Acc, State}.