Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/The-Name-Game/Min/the-name-game.min
Normal file
19
Task/The-Name-Game/Min/the-name-game.min
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
("AEIOU" "" split swap in?) :vowel?
|
||||
|
||||
(
|
||||
:Name
|
||||
Name "" split first :L
|
||||
Name lowercase :name (L vowel?) (name "" split rest "" join @name) unless
|
||||
"b" :B
|
||||
"f" :F
|
||||
"m" :M
|
||||
(
|
||||
((L "B" ==) ("" @B))
|
||||
((L "F" ==) ("" @F))
|
||||
((L "M" ==) ("" @M))
|
||||
) case
|
||||
"$1, $1, bo-$3$2\nBanana-fana fo-$4$2\nFee-fi-mo-$5$2\n$1!\n"
|
||||
(Name name B F M) => % puts!
|
||||
) :name-game
|
||||
|
||||
("Gary" "Earl" "Billy" "Felix" "Milton" "Steve") 'name-game foreach
|
||||
Loading…
Add table
Add a link
Reference in a new issue