Interactive programming (repl): Difference between revisions

(Undo revision 34312 by Suchenwi AWK doesn't have a command line interpreter. It's best to not add something else otherwise other languages might do the same.)
Line 67:
<i>s" :" s" Code" s" Rosetta" f cr type</i>
Rosetta::Code ok
 
=={{header|groovy}}==
The *groovysh* interpreter requires a command-line interpreter (terminal) environment in which to run. This example was run under the CMD command-line interpreter on Microsoft Windows XP.
<lang cmd>C:\Apps\groovy>groovysh
Groovy Shell (1.6.2, JVM: 1.6.0_13)
Type 'help' or '\h' for help.
---------------------------------------------------------------------------------------------------
groovy:000> f = { a, b, sep -> a + sep + sep + b }
===> groovysh_evaluate$_run_closure1@5e8d7d
groovy:000> println f('Rosetta','Code',':')
Rosetta::Code
===> null
groovy:000> exit
 
C:\Apps\groovy></lang>
 
=={{header|Haskell}}==
Anonymous user