Cleaner Clojure Functions with the :pre Special Form
In the course of programming, it's fairly common to face a scenario where you want to ensure that a function's arguments fulfil some condition(s), and if not, to throw an error.
For example, if our function should only accept positive numbers.
In thi...
kevgathuku.dev2 min read