</a>Any number but 5</h2>
<pre><code class="clojure">(def anything-but-five (gen/such-that #(not= % 5) gen/int))
(gen/sample anything-but-five)
;; =&gt; (0 0 -2 1 -3 1 -4 7 -1 6)
</code></pre>
<p>It’s important to note that <code>such-that</code> should only be used for predicates that are <em>very</em> likely to match. For example, you should <em>not</em> use <code>such-that</code> to filter out random vectors that are not sorted, as is this is exceedingly unlikely to happen randomly. If you want sorted 