hyper-literate ignored #; comments it seems

This commit is contained in:
Suzanne Soy 2021-03-21 16:13:34 +00:00
parent 4f81c12016
commit 079d1f2bbb

View File

@ -22,19 +22,19 @@ Changing the order of execution:
꩜chunk[<use-case-order>
(if condition if-true if-false)
;; can be expressed as:
;;(force (if condition
;; (λ () if-true)
;; (λ () if-false)))
(force (if condition
(λ () if-true)
(λ () if-false)))
(match v ([null if-null] [(cons a b) if-cons]))
;; can be expressed as:
;;(force (if (null? v)
;; (λ () if-null)
;; (λ () (let ([a (car v)] [b (cdr v)]) if-cons))))
(force (if (null? v)
(λ () if-null)
(λ () (let ([a (car v)] [b (cdr v)]) if-cons))))
(for/list ([x (in-list l)]) body)
;; can be expressed as
;;(map (λ (x) body) l)
(map (λ (x) body) l)
]
꩜subsection{Syntactic sugar}