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.139 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.138 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.137 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.136 tracks/nim/exercises/pangram/example.nim
trackler-2.2.1.135 tracks/nim/exercises/pangram/example.nim