Category | Primitive procedure | ||||||
Format | (eof-object? obj) | ||||||
Parameters |
|
||||||
Description | eof-object? returns #t for the end-of-file object, which is returned by procedures read, read-char, peek-char, and read-line when they encounter the end of a memo; and #f for any other object. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure | |||||||||||||||||||||
Format | (eq? obj1 obj2) | |||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||
Description | eq? returns #t if obj1 and obj2 are identical and #f otherwise. eq? identifies equal symbols, integers and chars, but not reals or strings. To compare reals, use eqv? and to compare strings use string=? or equal?. Empty lists, vectors and strings are always eq?. | |||||||||||||||||||||
R4RS Compliance | Full | |||||||||||||||||||||
Examples |
|
Category | Native procedure | ||||||||||||||||||
Format | (equal? obj1 obj2) | ||||||||||||||||||
Parameters |
|
||||||||||||||||||
Description | equal? returns #t if obj1 and obj2 have the same value and #f otherwise. equal? returns #t, if eqv? does, but also if both objects are lists, vectors or strings and contain the same components. In general, two objects are equal? if they print the same way. equal? checks for circular lists. | ||||||||||||||||||
R4RS Compliance | Full | ||||||||||||||||||
Examples |
|
Category | Primitive procedure | |||||||||||||||||||||
Format | (eqv? obj1 obj2) | |||||||||||||||||||||
Parameters |
|
|||||||||||||||||||||
Description | eq? returns #t if obj1 and obj2 are equivalent and #f otherwise. eqv? returns #t, if eq? does, but also if both objects are numbers and numerically the same. Different non-empty strings are never considered eqv?, as modifying one string does not alter the other and so they're not equivalent. (Remember that strings are not shared in LispMe.) | |||||||||||||||||||||
R4RS Compliance | Full | |||||||||||||||||||||
Examples |
|
Category | Native procedure | ||||||
Format | (error obj) | ||||||
Parameters |
|
||||||
Description | error aborts the current evaluation and prints obj using display to a message box as a user error. There's no return value. | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Compiler extension | ||||||
Format | (eval expression) | ||||||
Parameters |
|
||||||
Description | eval evaluates expression in the current environment and returns its value. | ||||||
R4RS Compliance | LispMe extension. The environment parameter described in R5RS is not supported. | ||||||
Examples |
|
Category | Native procedure | |||||||||
Format | (even? int) | |||||||||
Parameters |
|
|||||||||
Description | even? returns #t, if int is even. Otherwise it returns #f. See also odd?. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (event wait) | ||||||
Parameters |
|
||||||
Description | event gets the next event from the PalmOS event queue and translates it into LispMe event syntax. Depending on wait it will wait (true) for the next event to become available or return immediately (timeout), if no event is queued. See also here. | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Native procedure | ||||
Format | (exact->inexact num) | ||||
Parameters |
|
||||
Description | exact->inexact converts an exact number (SMALLINT or BIGINT) to an inexact one (IEEE floating point). May return [inf] if the large integer doesn't fit into a IEEE real. | ||||
R4RS Compliance | full | ||||
Examples |
|
Category | Native procedure | ||||||
Format | (exact? num) | ||||||
Parameters |
|
||||||
Description | exact? returns #t for integers and #f for other numbers. LispMe doesn't support the exactness property of general numbers, all integer numbers are considered exact. | ||||||
R4RS Compliance | Exactness property not stored | ||||||
Examples |
|
Category | Primitive procedure (MathLib required) | |||||||||
Format | (exp z) | |||||||||
Parameters |
|
|||||||||
Description | exp returns the natural antilogarithm ex of z. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Library procedure (MathLib required) | |||||||||||||||
Format | (expt z1 z2) | |||||||||||||||
Parameters |
|
|||||||||||||||
Description | expt returns the power z1z2. When z2 is a natural number, the result is calculated by squaring and multiplication, so an integer result is always exact (see third example). | |||||||||||||||
R4RS Compliance | Full | |||||||||||||||
Examples |
|
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