summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2019-04-29 22:22:05 +0200
committerPeter Bex <peter@more-magic.net>2019-04-29 22:22:05 +0200
commitb31815c0b39e0f28c6b793987a0e44dcfb61fd43 (patch)
tree1adc05cceee3d88ae14940fe1f1955cd1173016d
parent450b33a6318e9fb0058cedcd8e2f1794fc33456e (diff)
downloadt-dose-chicken-5-b31815c0b39e0f28c6b793987a0e44dcfb61fd43.tar.gz
Some minor tweaks
-rw-r--r--chicken-5.org20
1 files changed, 10 insertions, 10 deletions
diff --git a/chicken-5.org b/chicken-5.org
index 29b7be3..2f9e26c 100644
--- a/chicken-5.org
+++ b/chicken-5.org
@@ -71,7 +71,7 @@
* Scheme superpowers: closures
-** Lexical scoping
+** Lexical scoping (from definition, not from call)
Gives us *closures* (now ubiquitous; first LISP)
#+BEGIN_SRC scheme
@@ -104,16 +104,16 @@
** Numeric tower
-Systematic support for /all the numbers/
-Spec defines system, subset is allowed (see later)
+ Systematic support for /all the numbers/
+ Spec defines system, allows subset (see later)
#+BEGIN_SRC scheme
-1 ;; exact integer
-0.5 ;; inexact real number
-1/2 ;; exact rational number
-1+2i ;; exact complex number
-0.5+0.25i ;; inexact complex number
-1/2+3/4i ;; ALSO an exact complex number
-(+ 3/4 1/2) ;; yes, this returns 5/4
+ 1 ;; exact integer
+ 0.5 ;; inexact real number
+ 1/2 ;; exact rational number
+ 1+2i ;; exact complex number
+ 0.5+0.25i ;; inexact complex number
+ 1/2+3/4i ;; ALSO an exact complex number
+ (+ 3/4 1/2) ;; yes, this returns 5/4
#+END_SRC
* Scheme superpowers: REPL