adding number?

This commit is contained in:
Danny Yoo 2011-08-17 16:53:13 -04:00
parent 91a0432abb
commit c0917801d7
2 changed files with 7 additions and 1 deletions

View File

@ -964,6 +964,12 @@
}); });
installPrimitiveProcedure(
'number?',
1,
function(MACHINE) {
return isNumber(MACHINE.env[MACHINE.env.length - 1]);
});
installPrimitiveProcedure( installPrimitiveProcedure(

View File

@ -273,7 +273,7 @@ vector?
;; eof-object? ;; eof-object?
;; bytes? ;; bytes?
;; byte? ;; byte?
;; number? number?
;; complex? ;; complex?
;; real? ;; real?
;; rational? ;; rational?