Clojure implementation of "idlbeta"