summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorManu <manu.delab@gmail.com>2013-07-12 00:01:33 +1200
committerManu <manu.delab@gmail.com>2013-07-12 00:01:33 +1200
commit80c2a00bc5502f3afb4c9f50ba8d8197f8dd7700 (patch)
treeb4669a31ca20403b9593ca524cfb1a3dda3dd7a6
parent340e552822343e755331ba749f5e1081fc094955 (diff)
fix errors
-rw-r--r--racket.html.markdown11
1 files changed, 4 insertions, 7 deletions
diff --git a/racket.html.markdown b/racket.html.markdown
index 27871e50..db85edb0 100644
--- a/racket.html.markdown
+++ b/racket.html.markdown
@@ -17,6 +17,9 @@ Feedback would be highly appreciated! You can reach me at [@th3rac25](http://twi
as comments
|#
+
+#lang racket ; defines the language we are using
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 1. Primitive Datatypes and Operators
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -88,12 +91,6 @@ some-var ; => 6
; Accessing a previously unassigned variable is an exception
x ; => x: undefined ...
-; if can be used as an expression
-
-some_var = a if a > b else b
-; If a is greater than b, then a is assigned to some_var.
-; Otherwise b is assigned to some_var.
-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; 3. Collections and Sequences
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -144,7 +141,7 @@ x ; => 1
(hello-world) ; => "Hello World"
; You can shorten this to:
-(define (hello-world) "Hello World")
+(define (hello-world2) "Hello World")
; The () is the list of arguments for the function.
(define hello