We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40662e8 commit 360c0dbCopy full SHA for 360c0db
docs/docs/lips/environments.md
@@ -103,22 +103,24 @@ call stack environments.
103
104
```scheme
105
(define (foo)
106
- (define x 10)
+ (define x 20)
107
(bar))
108
109
(define (bar)
110
- (define x 20)
+ (define x 30)
111
(baz))
112
113
(define (baz)
114
(for-each (lambda (env)
115
(let-env env
116
(print x)))
117
- ;; car is top level environment
118
- (cdr (parent.frames))))
+ (parent.frames)))
+
119
+(define x 10)
120
(foo)
121
;; ==> 10
122
;; ==> 20
123
+;; ==> 30
124
```
125
126
You can mix lexical scope chain with frames:
0 commit comments