The Name Game: Difference between revisions

m
→‎{{header|Factor}}: simplify and update to Factor 0.98
m (→‎{{header|Factor}}: simplify and update to Factor 0.98)
Line 369:
=={{header|Factor}}==
{{trans|Kotlin}}
{{works with|Factor|0.98}}
<lang factor>USING: ascii combinators interpolate io kernel locals pair-rocket
pair-rocket qw sequences ;
IN: rosetta-code.name-game
 
Line 386 ⟶ 387:
CHAR: F => [ "" F! ]
CHAR: M => [ "" M! ] [ drop ] } case
 
[I ${Name}, ${Name}, bo-${B }${name F name M name Name}
Banana-fana fo-${4F}${5name}
"${0}, ${1}, boFee-fi-mo-${2M}${3name}
${Name}!I] nl nl ;
Banana-fana fo-${4}${5}
Fee-fi-mo-${6}${7}
${8}!\n\n" 9 ninterpolate ;
 
qw{ Gary Earl Billy Felix Milton Steve } [ name-game ] each</lang>
1,827

edits