Last active
April 25, 2018 22:37
-
-
Save juliofruta/56bd6b30b40aa6595d8fa8c73db37c54 to your computer and use it in GitHub Desktop.
bitso challenge on facebook
This file contains 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 currentCollation = UILocalizedIndexedCollation.current().sectionTitles | |
for i in currentCollation.enumerated() { | |
if i.element == "G" { | |
print(i.offset + 1, i.element) | |
} | |
if i.element == "N" { | |
print(i.offset + 1, i.element) | |
} | |
if i.element == "T" { | |
print(i.offset + 1, i.element) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output:
7 G
14 N
20 T