The Name Game: Difference between revisions
Content added Content deleted
m (→{{header|zkl}}: clean up) |
m (→{{header|zkl}}: tweak) |
||
Line 300: | Line 300: | ||
{{trans|Kotlin}} |
{{trans|Kotlin}} |
||
<lang zkl>fcn printVerse(name){ |
<lang zkl>fcn printVerse(name){ |
||
z,x := name[0].toLower(), z.toUpper() + name[1,*].toLower(); |
|||
y:=( if("aeiou".holds(z)) name.toLower() else x[1,*] ); |
y:=( if("aeiou".holds(z)) name.toLower() else x[1,*] ); |
||
b,f,m := T("b","f","m").apply('wrap(c){ z==c and y or c+y }); |
b,f,m := T("b","f","m").apply('wrap(c){ z==c and y or c+y }); |