advent_of_code_2022

My (attempted) solutions to the 2022 Advent of Code
git clone https://git.eamoncaddigan.net/advent_of_code_2022.git
Log | Files | Refs | README

commit 7c60dc832da2f4653548bc80334d1a6849f9a93c
parent 68a681fe37b7d4d877442c0140b8c9767656ff71
Author: Eamon Caddigan <eamon.caddigan@gmail.com>
Date:   Wed, 14 Dec 2022 11:38:51 -0800

Just cleaning up parsing a tiny bit more.

Diffstat:
Msrc/day_13.jl | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/day_13.jl b/src/day_13.jl @@ -66,7 +66,7 @@ comparesides(left::Vector{<:Any}, right::Int) = comparesides(left, [right]) Read the input and return a list of packets. """ function parse_input(input) - map(eval ∘ Meta.parse, Iterators.filter(x->x!="", input)) + map(eval ∘ Meta.parse, filter(!=(""), input)) end function part_1(input)