Add more types
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user