peel-annotations
This commit is contained in:
parent
fa5eaa6e39
commit
e57fe62a48
|
@ -5,6 +5,7 @@
|
|||
(struct-out record)
|
||||
(struct-out annotated)
|
||||
strip-annotations
|
||||
peel-annotations
|
||||
read-preserve
|
||||
read-preserve-syntax
|
||||
string->preserve
|
||||
|
@ -71,6 +72,9 @@
|
|||
[_ item])]
|
||||
[_ v]))))
|
||||
|
||||
(define (peel-annotations v)
|
||||
(strip-annotations v #:depth 1))
|
||||
|
||||
(define current-value->placeholder (make-parameter (lambda (v) #f)))
|
||||
(define current-placeholder->value (make-parameter (lambda (v) (void))))
|
||||
|
||||
|
@ -948,6 +952,6 @@
|
|||
(write-preserve t #:indent #f)
|
||||
(newline)
|
||||
(newline)
|
||||
(pretty-print (list (strip-annotations t-name)
|
||||
(strip-annotations t #:depth 1)))))
|
||||
(pretty-print (list (peel-annotations t-name)
|
||||
(peel-annotations t)))))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue