fix in-list' to check argument with
list?'
--- originally left out on purpose for performance reasons, but it was not documented as missing a test, it's obviously better to check for a list, and JIT changes have made the `list?' test inexpensive
This commit is contained in:
parent
8ad8d5b7f7
commit
ca16f25cf1
|
@ -537,7 +537,7 @@
|
|||
#f))))))
|
||||
|
||||
(define (in-list l)
|
||||
;; (unless (list? l) (raise-type-error 'in-list "list" l))
|
||||
(unless (list? l) (raise-type-error 'in-list "list" l))
|
||||
(make-list-stream l))
|
||||
|
||||
(define (:list-gen l)
|
||||
|
@ -1519,7 +1519,7 @@
|
|||
;;outer bindings
|
||||
([(lst) lst-expr])
|
||||
;; outer check
|
||||
(void) ; (unless (list? lst) (in-list lst))
|
||||
(unless (list? lst) (in-list lst))
|
||||
;; loop bindings
|
||||
([lst lst])
|
||||
;; pos check
|
||||
|
|
Loading…
Reference in New Issue
Block a user