Interactive programming (repl): Difference between revisions
m
Update lang example (Default auto print mode for LangShell was changed to AUTO)
(Add auto print example to lang) |
m (Update lang example (Default auto print mode for LangShell was changed to AUTO)) |
||
Line 795:
• Press CTRL + L to clear the screen
• Use func.printHelp() to get information about LangShell functions
> fp.f = ($a, $b, $s) ->
==> <Normal FP>▼
> fp.f(Rosetta, Code, :)
==> Rosetta::Code
>
</syntaxhighlight>
Example with auto print mode set to
<syntaxhighlight lang="lang">
Lang-Shell - Press CTRL + C for cancelling execution or for exiting!
Line 810 ⟶ 811:
• Press CTRL + L to clear the screen
• Use func.printHelp() to get information about LangShell functions
> fn.setAutoPrintMode(
> fp.f = ($a, $b, $s) -> return $a$s$s$b
> fn.println(fp.f(Rosetta, Code, :))
▲ ==> <Normal FP>
>
</syntaxhighlight>
|