Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import strutils
- proc isIsogram*(wrd:string):bool=
- for i in 0..<wrd.len:
- var toCheck = wrd
- toCheck[i]='-'
- if wrd[i]!='-' and wrd[i]!=' ' and toCheck.contains(wrd[i].toLowerAscii):
- return false
- return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement