summaryrefslogtreecommitdiffhomepage
path: root/CHICKEN.html.markdown
diff options
context:
space:
mode:
authorMilo Gilad <milogaccnts@gmail.com>2017-08-25 10:18:31 -0400
committerMilo Gilad <milogaccnts@gmail.com>2017-08-25 10:18:31 -0400
commita6c3a64a4c897a1f7e7acfbfe6318866317770ad (patch)
tree28b0d35aaf2cdc3e968e182f1de4d5c5e596a970 /CHICKEN.html.markdown
parent1abae4b25de43e05df3ba225986997bc72eb3f8a (diff)
parentbce21489d8d7e3a3f3d4ede2154dba082647296e (diff)
Merge branch 'master' of github.com:adambard/learnxinyminutes-docs
Diffstat (limited to 'CHICKEN.html.markdown')
-rw-r--r--CHICKEN.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/CHICKEN.html.markdown b/CHICKEN.html.markdown
index 080527a9..7fb0270b 100644
--- a/CHICKEN.html.markdown
+++ b/CHICKEN.html.markdown
@@ -235,12 +235,12 @@ sqr ;; => #<procedure (sqr x)>
(= 2 1) ;; => #f
;; 'eq?' returns #t if two arguments refer to the same object in memory
-;; In other words, it's a simple pointer comparision.
+;; In other words, it's a simple pointer comparison.
(eq? '() '()) ;; => #t ;; there's only one empty list in memory
(eq? (list 3) (list 3)) ;; => #f ;; not the same object
(eq? 'yes 'yes) ;; => #t
(eq? 3 3) ;; => #t ;; don't do this even if it works in this case
-(eq? 3 3.0) ;; => #f ;; it's better to use '=' for number comparisions
+(eq? 3 3.0) ;; => #f ;; it's better to use '=' for number comparisons
(eq? "Hello" "Hello") ;; => #f
;; 'eqv?' is same as 'eq?' all datatypes except numbers and characters
@@ -255,7 +255,7 @@ sqr ;; => #<procedure (sqr x)>
(equal? '(1 2 3) '(1 2 3)) ;; => #t
(equal? #(a b c) #(a b c)) ;; => #t
(equal? 'a 'a) ;; => #t
-(equal? "abc" "abc") ;; => #f
+(equal? "abc" "abc") ;; => #t
;; In Summary:
;; eq? tests if objects are identical