Cleaner Functions with Clojure’s :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. In this post, we’re going to see how Clojure provides a handy special form that greatly simplifies this task.

Continue reading “Cleaner Functions with Clojure’s :pre Special Form”