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.
apply-append-for-loop-to-for-loop
1 parent 4c4c7ec commit 924ff4aCopy full SHA for 924ff4a
typed-racket-lib/typed-racket/types/printer.rkt
@@ -458,8 +458,9 @@
458
(define-values (pre mid) (split-at lst to-drop))
459
(define-values (sub post) (split-at mid n))
460
(list pre sub post)))
461
- (apply append (for/list ([i (range (length lst) 0 -1)])
462
- (sublist-n i lst))))
+ (for*/list ([i (range (length lst) 0 -1)]
+ [v (in-list (sublist-n i lst))])
463
+ v))
464
(let loop ([left-to-cover arrs])
465
;; try to match the largest sublists possible that correspond to
466
;; ->* types and then the remainder are formatted normally
0 commit comments