The Name Game: Difference between revisions

Line 300:
{{trans|Kotlin}}
<lang zkl>fcn printVerse(name){
z,x := name[0].toUpper(), z + name[1,*].toLower();
y:=( if("AEIOU".holds(x[0]z)) xname.toLower() else x[1,*] );
b,f,m := T("bB"+y, "fF"+y, "mM").apply('wrap(c){ z==c and y or c.toLower()+y });
switch(x[0]){
case("B"){ b=y }
case("F"){ f=y }
case("M"){ m=y }
}
println("%s, %s, bo-%s".fmt(x,x,b));
println("Banana-fana fo-",f);
Anonymous user