We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g. How to implement following code using m_state
sync_github(#account{} = Account, Page) -> case m_http:once( sync_github_at(Account, Page) ) of {ok, []} -> {ok, []}; {ok, Head} -> case sync_github(Account, Page + 1) of {ok, Tail} -> {ok, Head ++ Tail}; {error, _} = Error -> Error end; {error, _} = Error -> Error end.
or
sync_github(#account{} = Account, Page) -> [m_state || Head <- sync_github_at(Account, Page), Tail <- next(Head, Account, Page), cats:unit(Head ++ Tail) ]. next([], _, _) -> fun(State) -> [[] | State] end; next(_, Account, Page) -> sync_github(Account, Page + 1).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
E.g. How to implement following code using m_state
or
The text was updated successfully, but these errors were encountered: