Skip to content

Commit

Permalink
Small clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
drewolson committed Dec 8, 2023
1 parent 1fa7720 commit 7a1873e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/year2023/day07.ml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let hand_type hand =
let counts =
hand
|> List.sort ~compare:compare_card
|> List.group ~break:(fun a b -> not (compare_card a b = 0))
|> List.group ~break:(fun a b -> not (equal_card a b))
|> List.map ~f:List.length
|> List.sort ~compare:(fun a b -> -compare a b)
in
Expand Down Expand Up @@ -98,7 +98,7 @@ let hand_type' hand =
hand
|> expand
|> List.map ~f:hand_type
|> List.sort ~compare:[%compare: type']
|> List.sort ~compare:compare_type'
|> List.hd_exn
;;

Expand Down

0 comments on commit 7a1873e

Please sign in to comment.