summaryrefslogtreecommitdiffhomepage
path: root/common-lisp.html.markdown
diff options
context:
space:
mode:
authorDivay Prakash <divayprakash@users.noreply.github.com>2018-10-24 11:30:23 +0530
committerGitHub <noreply@github.com>2018-10-24 11:30:23 +0530
commitadfd3064e52e769dc46f62d8302be7e28be4e48d (patch)
tree204d82adc9f82ae4fe377b631a1406b97eb6b11d /common-lisp.html.markdown
parent92022da0a6ea9417521563de9e537f337c426465 (diff)
parent8f5a67190705c9a3101653901d8f8a7b48eb1775 (diff)
Merge branch 'master' into MarkdownFRChanges
Diffstat (limited to 'common-lisp.html.markdown')
-rw-r--r--common-lisp.html.markdown11
1 files changed, 6 insertions, 5 deletions
diff --git a/common-lisp.html.markdown b/common-lisp.html.markdown
index e2cf62fb..b12e50ca 100644
--- a/common-lisp.html.markdown
+++ b/common-lisp.html.markdown
@@ -16,7 +16,7 @@ popular and recent book is [Land of Lisp](http://landoflisp.com/). A new book ab
-```common-lisp
+```lisp
;;;-----------------------------------------------------------------------------
;;; 0. Syntax
@@ -181,8 +181,8 @@ nil ; false; also, the empty list: ()
;;; You can also use unicode characters.
(defparameter *AΛB* nil)
-;;; Accessing a previously unbound variable is an undefined behavior, but
-;;; possible. Don't do it.
+;;; Accessing a previously unbound variable results in an UNBOUND-VARIABLE
+;;; error, however it is defined behavior. Don't do it.
;;; You can create local bindings with LET. In the following snippet, `me` is
;;; bound to "dance with you" only within the (let ...). LET always returns
@@ -284,7 +284,8 @@ nil ; false; also, the empty list: ()
;;; To access the element at 1, 1, 1:
(aref (make-array (list 2 2 2)) 1 1 1) ; => 0
-
+;;; This value is implementation-defined:
+;;; NIL on ECL, 0 on SBCL and CCL.
;;; Adjustable vectors
@@ -502,7 +503,7 @@ nil ; false; also, the empty list: ()
(fact 5) ; => 120
-(loop :for x :across "abc" :collect x)
+(loop :for x :across "abcd" :collect x)
; => (#\a #\b #\c #\d)
(dolist (i '(1 2 3 4))