Update things
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
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
|
||||
|
||||
@Day(1)
|
||||
class Day01(@Lines input: Input<IntArray>) {
|
||||
private val items = input.value
|
||||
class Day01(@Lines val items: IntArray) {
|
||||
|
||||
fun part1(): Int {
|
||||
var count = 0
|
||||
|
||||
@@ -2,6 +2,8 @@ package be.vandewalleh.aoc.days
|
||||
|
||||
import be.vandewalleh.aoc.utils.factory.createDay
|
||||
|
||||
fun main() = with(createDay<Day01>()) {
|
||||
println(part2())
|
||||
fun main() {
|
||||
with(createDay<Day01>()) {
|
||||
println(part2())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user