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.180 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.179 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.178 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.177 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.176 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.175 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.174 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.173 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.172 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.171 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.170 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.169 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.167 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.166 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.165 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.164 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.163 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.162 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.161 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.160 tracks/nim/exercises/isogram/example.nim