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 (if #t ; test expression
"this is true" ; then expression "this is true" ; then expression
"this is false" ; else expression "this is false") ; else expression
) ; => "this is true" ; => "this is true"
;; In conditionals, all non-#f values are treated as true ;; In conditionals, all non-#f values are treated as true
(member "Groucho" '("Harpo" "Groucho" "Zeppo")) ; => '("Groucho" "Zeppo") (member "Groucho" '("Harpo" "Groucho" "Zeppo")) ; => '("Groucho" "Zeppo")
(if (member "Groucho" '("Harpo" "Groucho" "Zeppo")) (if (member "Groucho" '("Harpo" "Groucho" "Zeppo"))
'yep 'yep
'nope) ; => 'yep 'nope)
; => 'yep
;; "cond" chains a series of tests to select a result ;; "cond" chains a series of tests to select a result
(cond (cond [(> 2 2) (error "wrong!")]
[(> 2 2) (error "wrong!")]
[(< 2 2) (error "wrong again!")] [(< 2 2) (error "wrong again!")]
[else 'ok]) ; => 'ok [else 'ok]) ; => 'ok