Is there a better way to implement this?
(if (empty? a-seq) nil a-seq)
Use the seq function , it does just that.
I don’t know how I missed this in the documents, but not-empty does exactly that (thanks Guillermo for re-reading the documents).