Sha256: cebe93d8fc773e09a01154647f332a6231e0e35ee8d15350bc308d9a74fcd841

Contents?: true

Size: 214 Bytes

Versions: 41

Compression:

Stored size: 214 Bytes

Contents

import
  sequtils, sets, strutils

proc isIsogram*(phrase: string): bool =
  let characters_lower = phrase.filterIt(it.isAlphaAscii()).mapIt(it.toLowerAscii)
  len(toSet(characters_lower)) == len(characters_lower)

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/nim/exercises/isogram/example.nim