diff --git a/README.md b/README.md index 87b9cd5..74a11d1 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,13 @@ dune test ## Create Local Switch ``` -opam switch create ./ ocaml-base-compiler.5.2.0 --deps-only +opam switch create ./ ocaml-base-compiler.5.2.0 --deps-only --locked ``` ## Install New Dependencies ``` -opam install . --deps-only +opam install . --deps-only --locked ``` ## Lock New Dependencies diff --git a/aoc.opam.locked b/aoc.opam.locked index 101d294..a575549 100644 --- a/aoc.opam.locked +++ b/aoc.opam.locked @@ -1,6 +1,6 @@ opam-version: "2.0" name: "aoc" -version: "~dev" +version: "dev" synopsis: "Advent of Code in Ocaml" maintainer: "Drew Olson" authors: "Drew Olson" @@ -9,21 +9,21 @@ homepage: "https://github.com/drewolson/aoc-ocaml" bug-reports: "https://github.com/drewolson/aoc-ocaml/issues" depends: [ "angstrom" {= "0.16.0"} - "core" {= "v0.16.2"} - "core_bench" {= "v0.16.0"} - "core_kernel" {= "v0.16.0"} - "core_unix" {= "v0.16.0"} - "dune" {= "3.15.2"} + "core" {= "v0.17.1"} + "core_bench" {= "v0.17.0"} + "core_kernel" {= "v0.17.0"} + "core_unix" {= "v0.17.0"} + "dune" {= "3.16.0"} "ocaml" {= "5.2.0"} "ocaml-lsp-server" {= "1.18.0~5.2preview"} "ocamlformat" {= "0.26.2"} "odig" {= "0.0.9"} "odoc" {= "2.4.2"} "pcre" {= "7.5.0"} - "ppx_jane" {= "v0.16.0"} + "ppx_jane" {= "v0.17.0"} "utop" {= "2.14.0"} - "z3" {= "4.13.0"} - "zarith" {= "1.13"} + "z3" {= "4.13.0-3"} + "zarith" {= "1.14"} ] build: [ ["dune" "subst"] {dev} diff --git a/lib/year2022/day06.ml b/lib/year2022/day06.ml index 08031fb..70af279 100644 --- a/lib/year2022/day06.ml +++ b/lib/year2022/day06.ml @@ -1,6 +1,6 @@ module CharSet = Set.Make (Char) -let is_unique l = List.equal Char.equal (CharSet.stable_dedup_list l) l +let is_unique l = List.stable_dedup ~compare:Char.compare l |> List.equal Char.equal l let find_char i = let rec find_char' n l =