Sha256: 31df0293d33415ee8a3c82f6870543d1d8a7780aed9135dd29b10df8201f701a

Contents?: true

Size: 305 Bytes

Versions: 151

Compression:

Stored size: 305 Bytes

Contents

open Core

let transform data =
  let assign_value value character = ((Char.lowercase character), value) in
  let assign (value, characters) = List.map ~f:(assign_value value) characters in
  let compare (a, _) (b, _) = Char.compare a b in
  List.sort ~cmp:compare (List.concat (List.map ~f:assign data))

Version data entries

151 entries across 151 versions & 1 rubygems

Version Path
trackler-2.2.1.110 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.109 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.108 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.107 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.106 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.105 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.104 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.103 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.102 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.101 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.100 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.99 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.98 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.97 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.96 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.95 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.94 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.93 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.92 tracks/ocaml/exercises/etl/example.ml
trackler-2.2.1.91 tracks/ocaml/exercises/etl/example.ml