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) -> fn.println(return $a$s$s$b)
==> <Normal FP>
> fp.f(Rosetta, Code, :)
==> Rosetta::Code
>
</syntaxhighlight>
Example with auto print mode set to autoNONE:
<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(AUTONONE)
==>
> fp.f = ($a, $b, $s) -> return $a$s$s$b
> fn.println(fp.f(Rosetta, Code, :))
==> <Normal FP>
> fp.f(Rosetta, Code, :):Code
==> Rosetta::Code
>
</syntaxhighlight>
168

edits