Minor cleanup on app of list.
This commit is contained in:
parent
c60b3d8b03
commit
755f4835be
|
@ -89,14 +89,11 @@
|
||||||
[(tc-result1: (List: (? (lambda (ts) (= (syntax-length #'args)
|
[(tc-result1: (List: (? (lambda (ts) (= (syntax-length #'args)
|
||||||
(length ts)))
|
(length ts)))
|
||||||
ts)))
|
ts)))
|
||||||
(match (for/list ([ac (in-syntax #'args)]
|
(ret (-Tuple
|
||||||
|
(for/list ([ac (in-syntax #'args)]
|
||||||
[exp (in-list ts)])
|
[exp (in-list ts)])
|
||||||
(tc-expr/check ac (ret exp)))
|
(tc-expr/check/t ac (ret exp)))))]
|
||||||
[(list (tc-result1: t) ...)
|
[_ (ret (-Tuple (stx-map tc-expr/t #'args)))]))
|
||||||
(ret (-Tuple t))])]
|
|
||||||
[_
|
|
||||||
(let ([tys (stx-map tc-expr/t #'args)])
|
|
||||||
(ret (apply -lst* tys)))]))
|
|
||||||
;; special case for `list*'
|
;; special case for `list*'
|
||||||
(pattern (list* . args)
|
(pattern (list* . args)
|
||||||
(match-let* ([(list tys ... last) (stx-map tc-expr/t #'args)])
|
(match-let* ([(list tys ... last) (stx-map tc-expr/t #'args)])
|
||||||
|
|
Loading…
Reference in New Issue
Block a user