I noticed that some function like is_binary/1 is marked as “Allowed in guard tests”. How can I make my own functions/guards like that?
If I defguard and def the same name, the compiler complains.
Thanks!
I noticed that some function like is_binary/1 is marked as “Allowed in guard tests”. How can I make my own functions/guards like that?
If I defguard and def the same name, the compiler complains.
Thanks!