Top "Read-eval-print-loop" questions

A Read-Eval-Print Loop (REPL) is the most common model for an interactive interpreter - it Reads input, Evaluates it, Prints it, and Loops back to the beginning.

Can I clean the repl?

I have played with a lot of code in a repl console, how can I clear it? I would like …

clojure read-eval-print-loop
Clojure : loading dependencies at the REPL

I recently learned (thanks to technomancy) that, at the REPL --- This fails: user=> (:require [clojure.set :as set]) …

clojure read-eval-print-loop
Hello world in Prolog

I'm tearing my hair out trying to find how to just write a Hello World program in Prolog. I just …

prolog read-eval-print-loop
How to disable "Save workspace image?" prompt in R?

When I exit the interactive R shell, it displays an annoying prompt every time: > > Save workspace image? [y/…

r read-eval-print-loop
how do I add a line break in a string?

The question is in the title. If I do this in the REPL (SML/NJ in windows commandline) val x = "…

string line-breaks sml read-eval-print-loop
REPL for Emacs Lisp

What are some REPLs for Emacs Lisp? Is there only one that is within Emacs? Are there some that run …

emacs elisp read-eval-print-loop
How to reload a class or package in Scala REPL?

I almost always have a Scala REPL session or two open, which makes it very easy to give Java or …

scala read-eval-print-loop
Clear terminal window in Node.js readline shell

I have a simple readline shell written in Coffeescript: rl = require 'readline' cli = rl.createInterface process.stdin, process.stdout, null …

node.js coffeescript readline read-eval-print-loop
Print whole result in interactive Scala console

When I type something into the Scala interactive console, the console prints the result of the statement. If the result …

scala read-eval-print-loop
Scala REPL startup error "class file is broken"

Every time after starting Scala 2.9.2 REPL (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0-ea) first line of code executing bring …

scala read-eval-print-loop