Add fake type name -Real

Add `scheme/math' types from Jos Koot.

svn: r14251

original commit: 43443652b8d4c0b73ec950c3ead818c262ddf0bb
This commit is contained in:
Sam Tobin-Hochstadt 2009-03-24 17:49:15 +00:00
parent 8fa0ec6079
commit 23a33e158c
2 changed files with 13 additions and 1 deletions

View File

@ -577,7 +577,7 @@
[current-continuation-marks (-> -Cont-Mark-Set)]
;; path.ss
;; scheme/path
[explode-path (-Pathlike . -> . (-lst (Un -Path (-val 'up) (-val 'same))))]
[find-relative-path (-Pathlike -Pathlike . -> . -Path)]
@ -591,3 +591,13 @@
[string->some-system-path
(-String (Un (-val 'unix) (-val 'windows)) . -> . -Path)]
;; scheme/math
[sgn (-Real . -> . -Real)]
[pi N]
[sqr (N . -> . N)]
[sgn (N . -> . N)]
[conjugate (N . -> . N)]
[sinh (N . -> . N)]
[cosh (N . -> . N)]
[tanh (N . -> . N)]

View File

@ -204,6 +204,8 @@
(define -Pattern (*Un -String -Bytes -Regexp -Byte-Regexp -PRegexp -Byte-PRegexp))
(define -Byte N)
(define -Real N)
(define (-Tuple l)
(foldr -pair (-val '()) l))