1
0

Add more types

This commit is contained in:
2020-12-02 02:36:21 +01:00
parent 7e31325d16
commit dc4160ca73
4 changed files with 40 additions and 22 deletions
+4 -8
View File
@@ -1,12 +1,9 @@
@file:Suppress("unused")
package be.vandewalleh.aoc.days
import be.vandewalleh.aoc.utils.input.Day
import be.vandewalleh.aoc.utils.input.Input
import be.vandewalleh.aoc.utils.input.Lines
import io.micronaut.context.BeanContext
import io.micronaut.context.getBean
import be.vandewalleh.aoc.utils.input.createDay
@Day(1)
class Day01(@Lines input: Input<IntArray>) {
@@ -34,8 +31,7 @@ class Day01(@Lines input: Input<IntArray>) {
}
fun main() {
val day = BeanContext.run().getBean<Day01>()
println(day.part1())
println(day.part2())
fun main() = with(createDay<Day01>()) {
println(part1())
println(part2())
}