News for hackers. Stuff that matters.
Re:Elixir at Ramp by el_oni on Friday November 24, 2023 @06:25PM (#38409518)
You can write custom guards out of any built in function that can already be used in a guard.

Like defguard is_list_or_even_int(val) do is_list(val) or (is_integer(val) and val % 2 ==0) end

There are no comments on this comment yet.