Created
May 14, 2024 04:02
-
-
Save DrunkenAlcoholic/21c845da2e78e5a0d5c24df47dff7a1e to your computer and use it in GitHub Desktop.
Isogram [Exercism - Nim]
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
import strutils | |
proc isIsogram*(s: string): bool = | |
result = true | |
for ch in s.toLowerAscii: | |
if ch in Letters: | |
if count(s.toLowerAscii, ch) >= 2: return false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment