actually, there is ``` tailrec fun getMinDelay(inp...
# advent-of-code
m
actually, there is
Copy code
tailrec fun getMinDelay(input: Map<Int, Int>, delay: Int  = 0) : Int {
    return delay.takeIf { findMatches(input, delay).isEmpty() } ?: getMinDelay(input, delay + 1)
}