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.6.41 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.40 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.39 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.38 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.37 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.36 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.35 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.34 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.33 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.32 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.31 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.30 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.29 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.28 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.27 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.26 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.25 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.24 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.23 tracks/ocaml/exercises/pangram/example.ml