_2, _1, 0, 1, 2, 3...
_2, _1, 0, 1, 2, 3...
Numbers starting from _ are used to represent predefined commands
Takes the preprocessed code
and printCode
and compiles/evals/runs/etc.
Takes the preprocessed code
and printCode
and compiles/evals/runs/etc.
it to provide a result. Takes printer
as a callback, instead of returning
the Iterator
as part of the output, because printing can cause side effects
(e.g. for Streams which are lazily printed) and can fail with an exception!
passing in the callback ensures the printing is still done lazily, but within
the exception-handling block of the Evaluator
Takes source code and, with the help of a compiler and preprocessor, evaluates it and returns a
Result[(output: String, imports: String)]
whereoutput
is what gets printed andimports
are any imports that need to get prepended to subsequent commands.