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
For each constant declared using defconst we can have the following functions
defconst
@spec values() :: list(String.t())
defconst(p: "P", i: "I")
["P", "I"]
@spec validate(String.t()) :: {:ok, String.t()} | {:error, String.t()}
{:ok , value}
{:error, msg}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For each constant declared using
defconst
we can have the following functions@spec values() :: list(String.t())
e.g. for
defconst(p: "P", i: "I")
it returns
["P", "I"]
@spec validate(String.t()) :: {:ok, String.t()} | {:error, String.t()}
{:ok , value}
for a valid value.{:error, msg}
for an invalid valueThe text was updated successfully, but these errors were encountered: