File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
typed-racket-lib/typed-racket/base-env Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -390,8 +390,7 @@ the typed racket language.
390
390
(for/list: for/list )
391
391
(for/and: for/and )
392
392
(for/or: for/or )
393
- (for/first: for/first )
394
- (for/last: for/last ))
393
+ (for/first: for/first ))
395
394
396
395
;; Unlike with the above, the inferencer can handle any number of #:when
397
396
;; clauses with these 2.
@@ -469,8 +468,7 @@ the typed racket language.
469
468
(define-for*-variants
470
469
(for*/and: for*/and )
471
470
(for*/or: for*/or )
472
- (for*/first: for*/first )
473
- (for*/last: for*/last ))
471
+ (for*/first: for*/first ))
474
472
475
473
;; Like for/lists: and for/fold:, the inferencer can handle these correctly.
476
474
(define-syntax (for*/lists: stx)
@@ -548,6 +546,8 @@ the typed racket language.
548
546
for*? #'for/folder: #'for/folder #'op #'initial #'final ))
549
547
... ))]))
550
548
(define-for/acc:-variants
549
+ (for/last: for/fold: for/last #f begin #f #%expression )
550
+ (for*/last: for*/fold: for*/last #t begin #f #%expression )
551
551
(for/sum: for/fold: for/sum #f + 0 #%expression )
552
552
(for*/sum: for*/fold: for*/sum #t + 0 #%expression )
553
553
(for*/list: for*/fold: for*/list #t (lambda (x y) (cons y x)) null reverse)
You can’t perform that action at this time.
0 commit comments