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.1.0.21 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.20 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.19 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.18 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.17 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.16 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.15 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.14 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.13 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.12 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.11 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.10 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.9 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.8 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.7 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.6 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.5 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.4 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.3 tracks/ocaml/exercises/pangram/example.ml
trackler-2.1.0.2 tracks/ocaml/exercises/pangram/example.ml