Anonymous user
Interactive programming (repl): Difference between revisions
Changed the REPL as "nrpl" ne longer compiles and "tnim" is not very friendly compared to "inim".
(Add min) |
(Changed the REPL as "nrpl" ne longer compiles and "tnim" is not very friendly compared to "inim".) |
||
Line 957:
=={{header|Nim}}==
Nim is not provided with a REPL but there is several available. Online, it is possible to use Nim playground at https://play.nim-lang.org/. And one can install “inim” with “nimble” (command <code>nimble install inim</code>).
Run the REPL and paste the following code:
f("Rosetta", "Code", ":")</lang>▼
▲proc f(x, y, z: string) = echo x & z & z & y
▲f("Rosetta", "Code", ":")
which outputs:
<pre>Rosetta::Code</pre>
=={{header|OCaml}}==
|