Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Mad-Libs/Red/mad-libs.red
Normal file
5
Task/Mad-Libs/Red/mad-libs.red
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
phrase: ask "Enter phrase, leave line empty to terminate:^/"
|
||||
while [not empty? line: input] [append phrase rejoin ["^/" line]]
|
||||
words: parse phrase [collect [any [to "<" copy b thru ">" keep (b)]]]
|
||||
foreach w unique words [replace/all phrase w ask rejoin [w ": "]]
|
||||
print phrase
|
||||
Loading…
Add table
Add a link
Reference in a new issue