Skip to content

Commit

Permalink
fix solves the day 1 part I puzzle correctly test
Browse files Browse the repository at this point in the history
  • Loading branch information
samjowen committed Dec 23, 2023
1 parent d5d22be commit ccf67ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/advent_of_code2023.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ defmodule AdventOfCode2023 do

def day1_solve_part_1(input_file_path) do
string_list = Day1.parse_file(input_file_path)
replaced_number_list = Enum.map(string_list, &Day1.find_first_and_last_number/1)
number_list = Enum.map(replaced_number_list, &Day1.combine_first_and_last_number/1)

number_list = Enum.map(string_list, &Day1.combine_first_and_last_number/1)
Enum.sum(number_list)
end

Expand Down

0 comments on commit ccf67ca

Please sign in to comment.