Hacker News new | ask | show | jobs
by josevalim 1045 days ago
> The issue at-hand is what is not explicitly documented. What constitutes a guard-worthy function?

https://hexdocs.pm/elixir/1.15/patterns-and-guards.html#guar...

Plus the docs lists on the sidebar which custom functions are guards. Examples: https://hexdocs.pm/elixir/1.15/Integer.html#guards

1 comments

The question was about why not what is allowed as a guard. Perhaps this was not clear amongst the noise.