Created
November 5, 2017 16:42
-
-
Save olbrichj/305fbea8c996ccd89788245789f81f6c to your computer and use it in GitHub Desktop.
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
let hostname = Gen<Character>.one(of: [ | |
lowerCaseLetters, | |
numeric, | |
Gen.pure("-"), // Only generate this character | |
]).proliferateNonEmpty.map { String($0) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment