blob: f5817d44e03ee04e25e5e74cc2133e6e864049e5 [file] [log] [blame]
// WITH_RUNTIME
// INTENTION_TEXT: "Replace with 'map{}.min()'"
// INTENTION_TEXT_2: "Replace with 'asSequence().map{}.min()'"
fun getMinLineWidth(lineCount: Int): Double {
var min_width = Double.MAX_VALUE
<caret>for (i in 0..lineCount - 1) {
val width = getLineWidth(i)
min_width = if (min_width > width) min_width else width
}
return min_width
}
fun getLineWidth(i: Int): Double = TODO()