You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For solutions like the day-3 advent of code, we don't need the split('\n') function while reading the file. What if we could pass in an options object to the runSolution function like
awaitrunSolution(day3a,{rawInput: true});
to allow more freedom to handle the input file. (we could allow for the readFile options to be passed in as well)
The file in question-> packages/ts-aoc-starter/src/generators/preset/generator.ts
The function in question runSolution and readData()
For now, I've modified the utils function as follows
For solutions like the day-3 advent of code, we don't need the
split('\n')
function while reading the file. What if we could pass in anoptions
object to therunSolution
function liketo allow more freedom to handle the input file. (we could allow for the readFile options to be passed in as well)
The file in question->
packages/ts-aoc-starter/src/generators/preset/generator.ts
The function in question
runSolution
andreadData()
For now, I've modified the utils function as follows
Usage example
The text was updated successfully, but these errors were encountered: