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.159 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.158 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.157 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.156 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.155 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.154 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.153 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.152 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.151 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.150 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.149 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.148 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.147 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.146 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.145 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.144 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.143 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.142 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.141 tracks/nim/exercises/isogram/example.nim
trackler-2.2.1.140 tracks/nim/exercises/isogram/example.nim