Indentation fixes.

This commit is contained in:
Eli Barzilay 2013-07-16 01:28:20 -04:00
parent fa1ef10edd
commit 6b282360b0

View File

@ -250,18 +250,18 @@ m ; => '#hash((b . 2) (a . 1) (c . 3))
(if #t ; test expression
"this is true" ; then expression
"this is false" ; else expression
) ; => "this is true"
"this is false") ; else expression
; => "this is true"
;; In conditionals, all non-#f values are treated as true
(member "Groucho" '("Harpo" "Groucho" "Zeppo")) ; => '("Groucho" "Zeppo")
(if (member "Groucho" '("Harpo" "Groucho" "Zeppo"))
'yep
'nope) ; => 'yep
'nope)
; => 'yep
;; "cond" chains a series of tests to select a result
(cond
[(> 2 2) (error "wrong!")]
(cond [(> 2 2) (error "wrong!")]
[(< 2 2) (error "wrong again!")]
[else 'ok]) ; => 'ok