Created
November 5, 2017 16:41
-
-
Save olbrichj/db813eb19166764c07dff7cb61c6372a 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 localEmail = allowedLocalCharacters | |
.proliferateNonEmpty // Make a non-empty array of characters | |
.suchThat { $0[$0.index(before: $0.endIndex)] != "." } | |
.map { String($0) } // Then make a string. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment