File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
typed-racket-lib/typed-racket/base-env Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -603,7 +603,7 @@ the typed racket language.
603
603
(begin-for-syntax
604
604
(define-values (define-for/hash:-variant define-for*/hash:-variant)
605
605
(let ()
606
- (define ((make for/folder:) hash-maker)
606
+ (define ((make for*? for /folder:) hash-maker)
607
607
(lambda (stx)
608
608
(syntax-parse stx
609
609
[(_ a1:optional-standalone-annotation*
@@ -614,11 +614,13 @@ the typed racket language.
614
614
(quasisyntax/loc stx
615
615
(#,for/folder: : #,a.ty
616
616
((return-hash : #,a.ty (ann (#,hash-maker null) #,a.ty)))
617
- (clause.expand ... ... )
617
+ (if for*?
618
+ (clause.expand* ... ... )
619
+ (clause.expand ... ... ))
618
620
(let-values (((key val) (let () body ... )))
619
621
(hash-set return-hash key val))))])))
620
622
621
- (values (make #'for/fold: ) (make #'for*/fold: )))))
623
+ (values (make #f # 'for/fold: ) (make #t #'for*/fold: )))))
622
624
623
625
(define-syntax for/hash: (define-for/hash:-variant #'make-immutable-hash ))
624
626
(define-syntax for/hasheq: (define-for/hash:-variant #'make-immutable-hasheq ))
You can’t perform that action at this time.
0 commit comments