Skip to content

Instantly share code, notes, and snippets.

@lasseebert
Created September 3, 2019 19:47
Show Gist options
  • Save lasseebert/15770fab52f2f01baadc56efa2720319 to your computer and use it in GitHub Desktop.
Save lasseebert/15770fab52f2f01baadc56efa2720319 to your computer and use it in GitHub Desktop.
@spec c() :: :ok | :error
def c do
with :ok <- a() do
:ok = b()
:ok
else
:error -> :error
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment