Skip to content

Commit f973ab7

Browse files
author
Quarto GHA Workflow Runner
committed
Built site for gh-pages
1 parent 1ca725d commit f973ab7

File tree

9 files changed

+276
-276
lines changed

9 files changed

+276
-276
lines changed

.nojekyll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
afc937c8
1+
0c274327

clojure+/print/objects_and_protocols.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,14 +400,14 @@ <h1>Printing Objects in Clojure</h1>
400400
<div class="sourceCode" id="cb1"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>(Object.)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
401401
</div>
402402
<div class="printedClojure">
403-
<div class="sourceCode" id="cb2"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>#object[java.lang.Object <span class="bn">0x4df0dc7f</span> <span class="st">"java.lang.Object@4df0dc7f"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
403+
<div class="sourceCode" id="cb2"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>#object[java.lang.Object <span class="bn">0x5feb63af</span> <span class="st">"java.lang.Object@5feb63af"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
404404
</div>
405405
<p>The syntax is <code>#object[CLASS-NAME HASH toString())]</code> and as you can see, the toString of an Object is <code>CLASS-NAME@HASH</code>. This can get pretty ugly:</p>
406406
<div class="sourceClojure">
407407
<div class="sourceCode" id="cb3"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>(async/chan)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
408408
</div>
409409
<div class="printedClojure">
410-
<div class="sourceCode" id="cb4"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.core.async.impl.channels.ManyToManyChannel <span class="bn">0x5feb63af</span> <span class="st">"clojure.core.async.impl.channels.ManyToManyChannel@5feb63af"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
410+
<div class="sourceCode" id="cb4"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>#object[clojure.core.async.impl.channels.ManyToManyChannel <span class="bn">0xa985455</span> <span class="st">"clojure.core.async.impl.channels.ManyToManyChannel@a985455"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
411411
</div>
412412
<p><a href="https://github.com/tonsky/clojure-plus">clojure-plus</a> provides print-methods to improve printing many things.</p>
413413
<div class="sourceClojure">

code_interview/beating/with_stupid_stuff/z_combinator_gambit.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ <h1 class="title">The Z-Combinator Gambit</h1>
434434
<div class="sourceCode" id="cb1"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>(<span class="kw">fn</span> [SELF LIST])</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
435435
</div>
436436
<div class="printedClojure">
437-
<div class="sourceCode" id="cb2"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>#object[code_interview.beating.with_stupid_stuff.z_combinator_gambit$eval49700$fn__49701 <span class="bn">0x4bcb2e3d</span> <span class="st">"code_interview.beating.with_stupid_stuff.z_combinator_gambit$eval49700$fn__49701@4bcb2e3d"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
437+
<div class="sourceCode" id="cb2"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>#object[code_interview.beating.with_stupid_stuff.z_combinator_gambit$eval49700$fn__49701 <span class="bn">0x19ed42ea</span> <span class="st">"code_interview.beating.with_stupid_stuff.z_combinator_gambit$eval49700$fn__49701@19ed42ea"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
438438
</div>
439439
<blockquote class="blockquote">
440440
<p>We’re just writing a function, and it only needs to take a list…</p>
@@ -542,7 +542,7 @@ <h1 class="title">The Z-Combinator Gambit</h1>
542542
<div class="sourceCode" id="cb18"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb18-1"><a href="#cb18-1" aria-hidden="true" tabindex="-1"></a>(REV-LOGIC REV-LOGIC)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
543543
</div>
544544
<div class="printedClojure">
545-
<div class="sourceCode" id="cb19"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb19-1"><a href="#cb19-1" aria-hidden="true" tabindex="-1"></a>#object[code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715 <span class="bn">0x79b3b0e0</span> <span class="st">"code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715@79b3b0e0"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
545+
<div class="sourceCode" id="cb19"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb19-1"><a href="#cb19-1" aria-hidden="true" tabindex="-1"></a>#object[code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715 <span class="bn">0x6ba6d35a</span> <span class="st">"code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715@6ba6d35a"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
546546
</div>
547547
<blockquote class="blockquote">
548548
<p>Well, it’s a function! That much is clear…</p>
@@ -635,7 +635,7 @@ <h1 class="title">The Z-Combinator Gambit</h1>
635635
<div class="sourceCode" id="cb25"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb25-1"><a href="#cb25-1" aria-hidden="true" tabindex="-1"></a>(FIX REV-LOGIC)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
636636
</div>
637637
<div class="printedClojure">
638-
<div class="sourceCode" id="cb26"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb26-1"><a href="#cb26-1" aria-hidden="true" tabindex="-1"></a>#object[code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715 <span class="bn">0x93a765f</span> <span class="st">"code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715@93a765f"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
638+
<div class="sourceCode" id="cb26"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb26-1"><a href="#cb26-1" aria-hidden="true" tabindex="-1"></a>#object[code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715 <span class="bn">0x22b94b5e</span> <span class="st">"code_interview.beating.with_stupid_stuff.z_combinator_gambit$REV_LOGIC$fn__49715@22b94b5e"</span>]</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
639639
</div>
640640
<blockquote class="blockquote">
641641
<p>At least it didn’t blow up this time…</p>

0 commit comments

Comments
 (0)