mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
* Fix wrong mutable struct namee * Re-added space after ;
This commit is contained in:
parent
dba32328ee
commit
51e14b0e34
@ -147,8 +147,8 @@ my-pet ; => #<dog>
|
||||
(struct rgba-color (red green blue alpha) #:mutable)
|
||||
(define burgundy
|
||||
(rgba-color 144 0 32 1.0))
|
||||
(set-color-green! burgundy 10)
|
||||
(color-green burgundy) ; => 10
|
||||
(set-rgba-color-green! burgundy 10)
|
||||
(rgba-color-green burgundy) ; => 10
|
||||
|
||||
;;; Pairs (immutable)
|
||||
;; `cons' constructs pairs, `car' and `cdr' extract the first
|
||||
|
Loading…
Reference in New Issue
Block a user