Add examples of each.
This commit is contained in:
parent
a43b2f5681
commit
bcb205a930
7
collects/tests/typed-scheme/fail/dot-intro.ss
Normal file
7
collects/tests/typed-scheme/fail/dot-intro.ss
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#lang typed-scheme
|
||||||
|
|
||||||
|
(plambda: (a ...) ([x : Number] . [y : Number ... a])
|
||||||
|
y)
|
||||||
|
|
||||||
|
(plambda: (a ...) ([x : Number] . [y : Number ... a])
|
||||||
|
(map add1 y))
|
9
collects/tests/typed-scheme/succeed/dot-intro.ss
Normal file
9
collects/tests/typed-scheme/succeed/dot-intro.ss
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#lang typed-scheme
|
||||||
|
|
||||||
|
(define x
|
||||||
|
(plambda: (a ...) ([x : Number] . [y : Number ... a])
|
||||||
|
(ormap zero? (map add1 y))))
|
||||||
|
|
||||||
|
(define y
|
||||||
|
(plambda: (a ...) ([x : Number] . [y : a ... a])
|
||||||
|
(ormap null? (map list y))))
|
Loading…
Reference in New Issue
Block a user