Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule ElixirUseSheriff do
- @type colors() :: :blue | :red | :green | :yellow
- def test(value) do
- :sheriff.check(value, {:blue, :red, :green, :yellow})
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement