Fix prop values for DrDr.

Add plt-responsible props.
Add hash-union to unstable.
Fix doc for compound-paragraph.
Fix unstable/scribblings/util.

svn: r16811

original commit: fcd4c4e38dcdca086d6d1de8dd4bd47439dff2da
This commit is contained in:
Sam Tobin-Hochstadt 2009-11-16 13:59:13 +00:00
parent 2d9267f484
commit 40c53e2191
3 changed files with 6 additions and 19 deletions

View File

@ -4,7 +4,7 @@
(types convenience utils union subtype)
(rep type-rep)
(utils tc-utils)
unstable/sequence
unstable/sequence unstable/hash
"signatures.ss" "constraint-structs.ss"
scheme/match)

View File

@ -3,8 +3,7 @@
(require "../utils/utils.ss"
"signatures.ss" "constraint-structs.ss"
(utils tc-utils)
unstable/sequence
scheme/match)
unstable/sequence unstable/hash scheme/match)
(import constraints^)
(export dmap^)

View File

@ -6,13 +6,12 @@ at least theoretically.
|#
(require (for-syntax scheme/base syntax/parse scheme/string)
scheme/contract mzlib/plt-match scheme/require-syntax scheme/provide-syntax
mzlib/struct scheme/unit
scheme/pretty mzlib/pconvert
(except-in syntax/parse id))
scheme/contract scheme/match scheme/require-syntax
scheme/provide-syntax mzlib/struct scheme/unit
scheme/pretty mzlib/pconvert syntax/parse)
;; to move to unstable
(provide == hash-union debug reverse-begin)
(provide == debug reverse-begin)
(provide
;; timing
@ -186,17 +185,6 @@ at least theoretically.
#'([prop:custom-write pseudo-printer]))
#f)]))
;; map map (key val val -> val) -> map
(define (hash-union h1 h2 f)
(for/fold ([h* h1])
([(k v2) h2])
(let* ([v1 (hash-ref h1 k #f)]
[new-val (if v1
(f k v1 v2)
v2)])
(hash-set h* k new-val))))
;; turn contracts on and off - off by default for performance.
(define-for-syntax enable-contracts? #f)