Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Interactive-programming-repl-/00-TASK.txt
Normal file
23
Task/Interactive-programming-repl-/00-TASK.txt
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
Many language implementations come with an ''interactive mode''.
|
||||
|
||||
This is a [[wp:command-line interpreter|command-line interpreter]] that reads lines from the user and evaluates these lines as statements or expressions.
|
||||
|
||||
An interactive mode may also be known as a ''command mode'', a ''[[wp:read-eval-print loop|read-eval-print loop]]'' (REPL), or a ''shell''.
|
||||
|
||||
|
||||
;Task:
|
||||
Show how to start this mode.
|
||||
|
||||
Then, as a small example of its use, interactively create a function of two strings and a separator that returns the strings separated by two concatenated instances of the separator (the 3<sup>rd</sup> argument).
|
||||
|
||||
|
||||
;Example:
|
||||
<big> f('Rosetta', 'Code', ':') </big>
|
||||
should return
|
||||
<big> 'Rosetta::Code' </big>
|
||||
|
||||
|
||||
;Note:
|
||||
This task is ''not'' about creating your own interactive mode.
|
||||
<br><br>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue