diff --git a/idlecycles/chapter1.html b/idlecycles/chapter1.html index 9b31e0a..6808830 100644 --- a/idlecycles/chapter1.html +++ b/idlecycles/chapter1.html @@ -298,10 +298,13 @@

Chapter 1: REPL

diff --git a/idlecycles/chapter2.html b/idlecycles/chapter2.html index bd26214..8f5b427 100644 --- a/idlecycles/chapter2.html +++ b/idlecycles/chapter2.html @@ -51,11 +51,9 @@ // render codeblock from script tag let codeblock = (scriptElement, indent = 0) => { const script = document.currentScript; - setTimeout(() => { - const pre = document.createElement("pre"); - pre.textContent = getCode(scriptElement, indent); - script.after(pre); - }, 1); + const pre = document.createElement("pre"); + pre.textContent = getCode(scriptElement, indent); + script.after(pre); }; function getCode(scriptElement, indent = 0) { return scriptElement.innerText @@ -68,10 +66,6 @@

This function will squeeze its given values into a single cycle:

- +

Here we can already see a cool property of functional programming: If we @@ -248,7 +242,7 @@

stack

place. This will only have a visual effect when the stacked colors are transparent:

- +

Patterns of Patterns

@@ -301,7 +295,7 @@

Patterns of Patterns

And magically, we can nest Patterns as deep as we like:

- + diff --git a/idlecycles/chapter3.html b/idlecycles/chapter3.html index 5113621..a189403 100644 --- a/idlecycles/chapter3.html +++ b/idlecycles/chapter3.html @@ -68,10 +68,6 @@