Skip to content

Commit

Permalink
Remove unnecessary pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
drewolson committed Dec 28, 2023
1 parent f41c44c commit 197c4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/year2023/day25.ml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let make_edge a b = if String.compare a b < 0 then a, b else b, a
let make_graph lines =
let aux (ns, es) (n, conns) =
let nodes = n :: conns in
let edges = conns |> List.map ~f:(make_edge n) in
let edges = List.map conns ~f:(make_edge n) in
let ns' = List.fold nodes ~init:ns ~f:Set.add in
let es' = List.fold edges ~init:es ~f:Set.add in
ns', es'
Expand Down

0 comments on commit 197c4d5

Please sign in to comment.