Advertisement
Guest User

Untitled

a guest
Nov 18th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import strutils
  2.  
  3. proc isIsogram*(wrd:string):bool=
  4. for i in 0..<wrd.len:
  5. var toCheck = wrd
  6. toCheck[i]='-'
  7. if wrd[i]!='-' and wrd[i]!=' ' and toCheck.contains(wrd[i].toLowerAscii):
  8. return false
  9. return true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement