Update things
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
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.Text
|
||||
|
||||
@Day(23)
|
||||
class Day23(@Text val input: Input<String>) {
|
||||
private val cups = input.value.toCharArray().map { it.toString().toInt() }
|
||||
class Day23(@Text val input: String) {
|
||||
private val cups = input.toCharArray().map { it.toString().toInt() }
|
||||
|
||||
private fun <T> ringSequence(head: Ring.Node<T>) = generateSequence(head) { it.next }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user