Last active
May 14, 2019 13:06
-
-
Save henryw374/29fec06bdec464decdaf9f0171b3a49d to your computer and use it in GitHub Desktop.
clojure clojurescript namespace require tidy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (ns tidy-requires) | |
| (defn tidy-requires [[ _ & requires]] | |
| (cons :require (sort-by first requires))) | |
| (comment | |
| (tidy-requires '(:require [foo] | |
| [bar] )) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment