Commatizing numbers: Difference between revisions

Content added Content deleted
(Added Kotlin)
(→‎{{header|Kotlin}}: Correction to allow for start index not being 0)
Line 438: Line 438:
ip += "." + dp
ip += "." + dp
}
}
return this.replaceFirst(m.value, ip)
return this.take(startIndex) + this.drop(startIndex).replaceFirst(m.value, ip)
}
}