Sha256: 257538ae958174bdeef566596cf016e51172363fbe6d4d1359ac3d71fc795803

Contents?: true

Size: 288 Bytes

Versions: 99

Compression:

Stored size: 288 Bytes

Contents

open Core.Std

let string_to_set s = Char.Set.of_list (String.to_list s)

let alphabet_set = string_to_set "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

let is_pangram s = 
  let normalize s = String.filter ~f:Char.is_alpha s |> String.uppercase in
  Set.equal alphabet_set (string_to_set @@ normalize s)

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
trackler-2.0.8.37 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.36 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.35 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.34 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.33 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.32 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.31 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.30 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.29 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.28 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.27 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.26 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.24 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.23 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.22 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.21 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.20 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.19 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.18 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.17 tracks/ocaml/exercises/pangram/example.ml