From 80c2a00bc5502f3afb4c9f50ba8d8197f8dd7700 Mon Sep 17 00:00:00 2001 From: Manu Date: Fri, 12 Jul 2013 00:01:33 +1200 Subject: fix errors --- racket.html.markdown | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'racket.html.markdown') 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 -- cgit v1.2.3