Sha256: c1d0310d879f6f6156ab2ed685a03a6fe0cd8d296f6e56277966cd4a2ce9bc52

Contents?: true

Size: 199 Bytes

Versions: 25

Compression:

Stored size: 199 Bytes

Contents

import strutils

const
    ascii_lowercase = {'a'..'z'}

proc is_pangram*(sentence:string): bool =
    for c in ascii_lowercase:
        if c notin sentence.toLowerAscii: return false
    return true

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.158 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.157 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.156 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.155 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.154 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.153 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.152 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.151 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.150 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.149 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.148 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.147 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.146 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.145 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.144 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.143 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.142 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.141 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.140 tracks/nim/exercises/pangram/example.nim