Add #t/#f return value for apropos
This commit is contained in:
parent
3e3ea1ca53
commit
e9998e31f1
|
@ -1126,6 +1126,8 @@
|
||||||
string<? symbol->string))))
|
string<? symbol->string))))
|
||||||
|
|
||||||
(define (apropos . args)
|
(define (apropos . args)
|
||||||
|
(let ((syms (apply apropos-list args)))
|
||||||
|
(and (not (null? syms))
|
||||||
(for-each (λ (sym)
|
(for-each (λ (sym)
|
||||||
(displayln
|
(displayln
|
||||||
(string-append
|
(string-append
|
||||||
|
@ -1133,7 +1135,8 @@
|
||||||
(if (procedure? val) "procedure" "variable "))
|
(if (procedure? val) "procedure" "variable "))
|
||||||
" "
|
" "
|
||||||
(symbol->string sym))))
|
(symbol->string sym))))
|
||||||
(apply apropos-list args)))
|
syms)
|
||||||
|
#t)))
|
||||||
|
|
||||||
(define-macro (help . args)
|
(define-macro (help . args)
|
||||||
`(apply help* ',args))
|
`(apply help* ',args))
|
||||||
|
|
Loading…
Reference in New Issue