Add procedure? to base.
* base.mes (procedure?): Move from scm.mes.
This commit is contained in:
parent
1bb3d1de11
commit
dd271be218
6
base.mes
6
base.mes
|
@ -67,3 +67,9 @@
|
||||||
|
|
||||||
(define-macro (let bindings . rest)
|
(define-macro (let bindings . rest)
|
||||||
(cons* 'simple-let bindings rest))
|
(cons* 'simple-let bindings rest))
|
||||||
|
|
||||||
|
(define (procedure? p)
|
||||||
|
(cond ((builtin? p) #t)
|
||||||
|
((and (pair? p) (eq? (car p) 'lambda)))
|
||||||
|
((and (pair? p) (eq? (car p) '*closure*)))
|
||||||
|
(#t #f)))
|
||||||
|
|
6
scm.mes
6
scm.mes
|
@ -46,12 +46,6 @@
|
||||||
,@body
|
,@body
|
||||||
(loop ,@(cddar init)))))
|
(loop ,@(cddar init)))))
|
||||||
|
|
||||||
(define (procedure? p)
|
|
||||||
(cond ((builtin? p) #t)
|
|
||||||
((and (pair? p) (eq? (car p) 'lambda)))
|
|
||||||
((and (pair? p) (eq? (car p) '*closure*)))
|
|
||||||
(#t #f)))
|
|
||||||
|
|
||||||
(define integer? number?)
|
(define integer? number?)
|
||||||
|
|
||||||
(define (make-list n . x)
|
(define (make-list n . x)
|
||||||
|
|
Loading…
Reference in a new issue