This repository was archived by the owner on Jan 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -399,12 +399,7 @@ Cell* get(Cell* t, Cell* k) {
399
399
os << " {" ;
400
400
for (CellMap::iterator p = t->table .begin (); p != t->table .end (); ++p) {
401
401
if (p->second )
402
- if ((Cell*)p->first == newSym (L" $wartScopeBelongsTo" )
403
- && isCons (car (p->second )))
404
- os << car (car (p->second )) << " : " ;
405
- else if ((Cell*)p->first == newSym (L" $wartScopeBelongsTo" ))
406
- os << car (p->second ) << " : " ;
407
- else if ((Cell*)p->first == newSym (L" seq" ))
402
+ if ((Cell*)p->first == newSym (L" seq" ))
408
403
os << (Cell*)p->first << " :" << p->second << " , " ;
409
404
else
410
405
os << (Cell*)p->first << " , " ;
Original file line number Diff line number Diff line change @@ -296,7 +296,6 @@ Cell* eval(Cell* expr) {
296
296
newCons (calleeEnv (fn), currLexicalScopes.top ()));
297
297
// now bind its params to args in the new environment
298
298
newLexicalScope ();
299
- addLexicalBinding (L" $wartScopeBelongsTo" , mkref (expr));
300
299
bindArgs (sig (fn), evaldArgs);
301
300
302
301
// eval all forms in body, save result of final form
Original file line number Diff line number Diff line change 170
170
:valueof (rem no '(1 2 nil 4 nil))
171
171
:should be '(1 2 4))
172
172
173
- ;? (prn:rem (fn(_) dumpScope. prn._ ~odd?._) '(11 12 13))
174
- (prn:keep (fn(_) dumpScope. prn._ odd?._) '(11 12 13))
175
-
176
173
(test "keep works"
177
174
:valueof (keep odd? '(11 12 13))
178
175
:should be '(11 13))
Original file line number Diff line number Diff line change @@ -139,8 +139,8 @@ def rem(f seq)
139
139
(rem f cdr.seq)
140
140
(cons car.seq (rem f cdr.seq))
141
141
142
- def keep(f seq )
143
- (rem ~f seq )
142
+ def keep(f seq2 )
143
+ (rem ~f seq2 )
144
144
145
145
146
146
You can’t perform that action at this time.
0 commit comments