Created
November 30, 2016 09:18
-
-
Save dg3feiko/47c14a7333a6c0556353f783bfdcd348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MyModule do | |
def doSomething(num) do | |
if num != 1 do | |
{:ok, num + 1} | |
else | |
{:error, "some reason"} | |
end | |
end | |
end |
Damn it, why the other part of comment was removed....
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is it
Either String Int
in Haskell ? reference