The Name Game: Difference between revisions

Content deleted Content added
No edit summary
PureFox (talk | contribs)
m →‎{{header|Kotlin}}: Made x and y read-only variables as they're never changed.
Line 188:
 
fun printVerse(name: String) {
varval x = name.toLowerCase().capitalize()
varval y = if (x[0] in "AEIOU") x.toLowerCase() else x.substring(1)
var b = "b$y"
var f = "f$y"