Back to index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Other

Alphabetic catalog of Language elements N

negative?

negative? tests, if a number is negative.

Category Library procedure
Format (negative? num)
Parameters
numa number
Description negative? returns #t, if num is negative. Otherwise it returns #f. See also positive? and zero?.
R4RS Compliance Full
Examples
(negative? -17) => #t
(negative? 0) => #f

new-serial?

new-serial? tests, if the New Serial Manager is available.

Category Native procedure
Format (new-serial?)
Parameters None
Description new-serial? returns #t, if the New Serial Manager is available on your Palm (usually with PalmOS 3.3 or better). Otherwise it returns #f. See LispMe serial interface for more information.
R4RS Compliance LispMe extension
Examples
(new-serial?) => #t

newline

newline starts a new line.

Category Native procedure
Format (newline [outport])
Parameters
outport(optional) an output port
Description newline prints a linefeed character to the output field or to the output port outport. newline returns the line feed character. For related information, see display and write.
R4RS Compliance Full
Examples
(newline) => ##0a and prints a linefeed to the output area.

none?

none? recognizes the non-printing object.

Category Primitive procedure
Format (none? obj)
Parameters
objany object
Description none? returns #t for #n and #f for any other object.
R4RS Compliance LispMe extension
Examples
(none? 42) => #f
(none? #n) => #t

not

not negates a boolean value.

Category Primitive procedure
Format (not obj)
Parameters
objany object
Description not returns #t if obj is false, otherwise it returns #t. Remember that in LispMe () and #f are distinct objects, so not is not the same procedure as null?.
R4RS Compliance Full
Examples
(not '(a b c)) => #f
(not '()) => #f
(not #f) => #t

null?

null? recognizes the empty list.

Category Primitive procedure
Format (null? obj)
Parameters
objany object
Description null? returns #t for the empty list () and #f for any other object. Remember that in LispMe () and #f are distinct objects, so null? is not the same procedure as not.
R4RS Compliance Full
Examples
(null? '(a b c)) => #f
(null? '()) => #t
(null? #f) => #f

number?

number? recognizes numbers.

Category Primitive procedure
Format (number? obj)
Parameters
objany object
Description number? returns #t for integer, real and complex numbers and #f for any other object.
R4RS Compliance Full
Examples
(number? 42) => #t
(number? -1.234e-55) => #t
(number? 3.5-17i) => #t
(number? 'foo) => #f
Back to index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Other