add example for subtract-in

svn: r14599
This commit is contained in:
Jon Rafkind 2009-04-24 21:22:24 +00:00
parent b741225899
commit 4bc8e35d39

View File

@ -998,7 +998,29 @@ monkey
@defform[(subtract-in require-spec subtracted-spec ...)]{ Like
@scheme[require-spec], but omitting those imports that would be
imported by one of the @scheme[subtracted-spec]s.}
imported by one of the @scheme[subtracted-spec]s.
@defexamples[#:eval (syntax-eval)
(module earth scheme
(provide land sea air)
(define land 1)
(define sea 2)
(define air 3))
(module mars scheme
(provide aliens)
(define aliens 4))
(module solar-system scheme
(require 'earth 'mars)
(provide (all-from-out 'earth)
(all-from-out 'mars)))
(require scheme/require)
(require (subtract-in 'solar-system 'earth))
land
aliens
]}
@defform[(filtered-in proc-expr require-spec)]{ The @scheme[proc-expr]
should evaluate to a single-argument procedure, which is applied on