snipt

Ctrl+h for KB shortcuts

Bash

haskell ghci lambda repl

# ~/.ghci
:set prompt "λ > "
https://snipt.net/embed/50e24d3fe7e0dccd5671d318b73327cc/
/raw/50e24d3fe7e0dccd5671d318b73327cc/
50e24d3fe7e0dccd5671d318b73327cc
bash
Bash
3
2019-06-25T09:59:24
True
False
False
May 23, 2015 at 03:08 AM
/api/public/snipt/139570/
haskell-ghci-lambda-repl-2eee75fe
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># ~/.ghci</span> </span><span id="L-2"><a name="L-2"></a>:set prompt <span class="s2">&quot;λ &gt; &quot;</span> </span></pre></div> </td></tr></table>
ghci, haskell, repl

Clojure

clojure leiningen lambda repl

1
2
3
 :repl-options {
  :init-ns reagent-example.repl
  :prompt #(str "[" %1 "] λ => ")}
https://snipt.net/embed/20c01e441ca836c20d12aa1f8b0016f1/
/raw/20c01e441ca836c20d12aa1f8b0016f1/
20c01e441ca836c20d12aa1f8b0016f1
clojure
Clojure
3
2019-06-25T17:10:43
True
False
False
Feb 25, 2016 at 11:50 AM
/api/public/snipt/139568/
clojure-leiningen-lambda-repl-dba5c1cd
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a> <span class="ss">:repl-options</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="ss">:init-ns</span> <span class="nv">reagent-example.repl</span> </span><span id="L-3"><a name="L-3"></a> <span class="ss">:prompt</span> <span class="o">#</span><span class="p">(</span><span class="nb">str </span><span class="s">&quot;[&quot;</span> <span class="nv">%1</span> <span class="s">&quot;] λ =&gt; &quot;</span><span class="p">)}</span> </span></pre></div> </td></tr></table>
clojure, leiningen, repl

Common Lisp

start lisp in emacs

M-x run-lisp
https://snipt.net/embed/fae3030b2e574f484a685df280c389e1/
/raw/fae3030b2e574f484a685df280c389e1/
fae3030b2e574f484a685df280c389e1
common-lisp
Common Lisp
2
2019-06-25T06:20:37
True
False
False
/api/public/snipt/11933/
start-lisp-in-emacs
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nv">M-x</span> <span class="nv">run-lisp</span> </span></pre></div> </td></tr></table>
clisp, emacs, lisp, repl