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.139 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.138 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.137 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.136 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.135 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.134 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.133 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.132 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.131 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.130 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.129 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.128 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.127 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.126 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.125 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.124 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.123 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.122 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.121 tracks/elm/exercises/pangram/Pangram.example.elm
trackler-2.2.1.120 tracks/elm/exercises/pangram/Pangram.example.elm