3 ms·
Guards are mostly used to do pattern matching, not to specify which types a function accepts, though you can use them as such.
by 1_player 7y ago
Guards are mostly used to do pattern matching, not to specify which types a function accepts, though you can use them as such.