mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-30 17:00:23 +02:00
* ls.scm (ls, lls): Don't assume (eq? #f '()).
This commit is contained in:
parent
a3cd2b988f
commit
a6002912d7
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@
|
||||||
(module-uses m)))))))
|
(module-uses m)))))))
|
||||||
|
|
||||||
(define-public (ls . various-refs)
|
(define-public (ls . various-refs)
|
||||||
(and various-refs
|
(and (pair? various-refs)
|
||||||
(if (cdr various-refs)
|
(if (cdr various-refs)
|
||||||
(map (lambda (ref)
|
(map (lambda (ref)
|
||||||
(cons ref (definitions-in (current-module) ref)))
|
(cons ref (definitions-in (current-module) ref)))
|
||||||
|
@ -72,7 +72,7 @@
|
||||||
(definitions-in (current-module) (car various-refs)))))
|
(definitions-in (current-module) (car various-refs)))))
|
||||||
|
|
||||||
(define-public (lls . various-refs)
|
(define-public (lls . various-refs)
|
||||||
(and various-refs
|
(and (pair? various-refs)
|
||||||
(if (cdr various-refs)
|
(if (cdr various-refs)
|
||||||
(map (lambda (ref)
|
(map (lambda (ref)
|
||||||
(cons ref (local-definitions-in (current-module) ref)))
|
(cons ref (local-definitions-in (current-module) ref)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue