PEZ / joyride-aoc-2022

Script VS Code to solve Advent of Code this year
Other
4 stars 0 forks source link

Loading question sample data for Q 2 returns incomplete lines #2

Open chrismurrph opened 1 year ago

chrismurrph commented 1 year ago

Expecting like this:

A Y
B X 
C Z

Get like this:

A
B
C

It is as if aoc.util/slurp-ws-file+ doesn't read whole lines but stops at the whitespace.

PEZ commented 1 year ago

TBH, I only did AOC Day 1 this year. 😄

Parsing the input data from the different puzzles is a whole topic on its own. But we should of course try to help better than we do now.

Over at Clojurian's slack there is an #adventofcode channel where this time around there were quite a lot of discussion around input data parsing. Until I get some time to try fix this embarrassing Day 2 situation, maybe you can find some clues there. (And if you do, and make it work, a PR would be super welcome!)