Sha256: 011ef118d128fc87c3f04f950a9227e52adf9e9988149a66d5c87946ab89baac

Contents?: true

Size: 334 Bytes

Versions: 66

Compression:

Stored size: 334 Bytes

Contents

module Pangram exposing (isPangram)

import String exposing (contains, fromChar, toLower)


isPangram : String -> Bool
isPangram sentence =
    let
        normalized =
            toLower sentence
    in
    String.all (\c -> contains (fromChar c) normalized) alphabet


alphabet : String
alphabet =
    "abcdefghijklmnopqrstuvwxyz"

Version data entries

66 entries across 66 versions & 1 rubygems

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