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.16 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.15 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.14 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.13 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.12 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.11 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.10 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.9 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.8 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.7 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.6 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.5 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.4 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.3 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.2 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.8.1 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.7.0 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.44 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.43 tracks/ocaml/exercises/pangram/example.ml
trackler-2.0.6.42 tracks/ocaml/exercises/pangram/example.ml