add type for flatten
fixes https://github.com/racket/typed-racket/issues/277 Can’t make it polymorphic, settle for `Any -> (Listof Any)`
This commit is contained in:
parent
10dc533751
commit
96fd22a7a3
|
@ -771,6 +771,8 @@
|
|||
((-lst b) b) . ->... .(-lst c)))]
|
||||
[append*
|
||||
(-poly (a) ((-lst (-lst a)) . -> . (-lst a)))]
|
||||
[flatten
|
||||
(Univ . -> . (-lst Univ))]
|
||||
[permutations (-poly (a) (-> (-lst a) (-lst (-lst a))))]
|
||||
[in-permutations (-poly (a) (-> (-lst a) (-seq (-lst a))))]
|
||||
[argmin (-poly (a) ((a . -> . -Real) (-lst a) . -> . a))]
|
||||
|
|
Loading…
Reference in New Issue
Block a user