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
| (System/getProperty "user.dir") |
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
| (defn isogram? | |
| "An isogram is a word in which no letters occur more than once. | |
| Empty string is considered an isogram in this implementation." | |
| [^String s] | |
| (boolean | |
| (when (string? s) | |
| (loop [letters (sort (seq s))] | |
| (let [[current next & _] letters] | |
| (cond | |
| (nil? next) true |
OlderNewer