You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A <tt>let</tt> expression expands into a call to a <tt>lambda</tt>
379
379
expression, e.g.:
380
380
381
-
<p><tt>(let ([a 17]) <!-- Beginning of KaTeX output from "math/stex/3.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>→</mo></mrow><annotationencoding="application/x-tex">\rightarrow</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.3669em;"></span><spanclass="mrel">→</span></span></span></span><!-- End of KaTeX output from "math/stex/3.html" --> ((lambda (a) (+ a a))<br>
381
+
<pclass="schemedisplay"><tt>(let ([a 17]) <!-- Beginning of KaTeX output from "math/stex/3.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>→</mo></mrow><annotationencoding="application/x-tex">\rightarrow</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.3669em;"></span><spanclass="mrel">→</span></span></span></span><!-- End of KaTeX output from "math/stex/3.html" --> ((lambda (a) (+ a a))<br>
382
382
383
383
(+ a a)) <spanstyle="visibility: hidden"><!-- Beginning of KaTeX output from "math/stex/2.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>⇒</mo></mrow><annotationencoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.3669em;"></span><spanclass="mrel">⇒</span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" --></span> 17)</tt>
384
384
<p>A <tt>let</tt> expression first evaluates the right-hand-side
385
385
expression, then evaluates the body in an environment that binds
386
386
the left-hand-side variable to the resulting value, e.g.:
387
387
388
-
<p><tt>(let ([a 17]) <!-- Beginning of KaTeX output from "math/stex/2.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>⇒</mo></mrow><annotationencoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.3669em;"></span><spanclass="mrel">⇒</span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" --> 17<br>
388
+
<pclass="schemedisplay"><tt>(let ([a 17]) <!-- Beginning of KaTeX output from "math/stex/2.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>⇒</mo></mrow><annotationencoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.3669em;"></span><spanclass="mrel">⇒</span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" --> 17<br>
389
389
390
390
(+ a a))</tt>
391
391
<p></blockquote>
@@ -467,7 +467,7 @@ <h4><a name="./stex:h7"></a>4.4. Raw text in code</h4>
467
467
<p>
468
468
<blockquote>
469
469
470
-
<p><tt>(sqrt <i>x</i>) <!-- Beginning of KaTeX output from "math/stex/2.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>⇒</mo></mrow><annotationencoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.3669em;"></span><spanclass="mrel">⇒</span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" --> <!-- Beginning of KaTeX output from "math/stex/4.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msqrt><mi>x</mi></msqrt></mrow><annotationencoding="application/x-tex">\sqrt{x}</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:1.04em;vertical-align:-0.2397em;"></span><spanclass="mord sqrt"><spanclass="vlist-t vlist-t2"><spanclass="vlist-r"><spanclass="vlist" style="height:0.8003em;"><spanclass="svg-align" style="top:-3em;"><spanclass="pstrut" style="height:3em;"></span><spanclass="mord" style="padding-left:0.833em;"><spanclass="mord mathnormal">x</span></span></span><spanstyle="top:-2.7603em;"><spanclass="pstrut" style="height:3em;"></span><spanclass="hide-tail" style="min-width:0.853em;height:1.08em;"><svgxmlns="http://www.w3.org/2000/svg" width='400em' height='1.08em' viewBox='0 0 400000 1080' preserveAspectRatio='xMinYMin slice'><pathd='M95,702
470
+
<pclass="schemedisplay"><tt>(sqrt <i>x</i>) <!-- Beginning of KaTeX output from "math/stex/2.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>⇒</mo></mrow><annotationencoding="application/x-tex">\Rightarrow</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:0.3669em;"></span><spanclass="mrel">⇒</span></span></span></span><!-- End of KaTeX output from "math/stex/2.html" --> <!-- Beginning of KaTeX output from "math/stex/4.html" --><spanclass="katex"><spanclass="katex-mathml"><mathxmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msqrt><mi>x</mi></msqrt></mrow><annotationencoding="application/x-tex">\sqrt{x}</annotation></semantics></math></span><spanclass="katex-html" aria-hidden="true"><spanclass="base"><spanclass="strut" style="height:1.04em;vertical-align:-0.2397em;"></span><spanclass="mord sqrt"><spanclass="vlist-t vlist-t2"><spanclass="vlist-r"><spanclass="vlist" style="height:0.8003em;"><spanclass="svg-align" style="top:-3em;"><spanclass="pstrut" style="height:3em;"></span><spanclass="mord" style="padding-left:0.833em;"><spanclass="mord mathnormal">x</span></span></span><spanstyle="top:-2.7603em;"><spanclass="pstrut" style="height:3em;"></span><spanclass="hide-tail" style="min-width:0.853em;height:1.08em;"><svgxmlns="http://www.w3.org/2000/svg" width='400em' height='1.08em' viewBox='0 0 400000 1080' preserveAspectRatio='xMinYMin slice'><pathd='M95,702
0 commit comments