From d7636e8a3595305d762624e967dbe4f70fa9d9f3 Mon Sep 17 00:00:00 2001 From: Wasi Mohammed Abdullah Date: Thu, 5 Dec 2024 15:11:23 +0600 Subject: [PATCH] 2024 day 05 solution :star: :star: --- lib/y2024/day_05.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/y2024/day_05.ex b/lib/y2024/day_05.ex index f222adf..97f29f0 100644 --- a/lib/y2024/day_05.ex +++ b/lib/y2024/day_05.ex @@ -22,7 +22,7 @@ defmodule Aoc.Y2024.Day05 do def process([], order, ins), do: {ins, order} def process([[key, value] | data], order, ins), - do: process(data, Map.update(order, key, [value], fn existing -> Enum.sort([value | existing]) end), ins) + do: process(data, Map.update(order, key, [value], fn existing -> [value | existing] end), ins) def process([a | data], order, ins), do: process(data, order, [a | ins])