Category | Special form | |||||||||
Format | (if test consequent [alternative]) | |||||||||
Parameters |
|
|||||||||
Description | if evaluates test first. If this evaluates to true, consequent is evaluated and its value returned. Otherwise, alternative is evaluated and its value returned. Remember that '() is considered true in LispMe. If alternative is omitted, nothing is done and #f is returned. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Native procedure | |||||||||
Format | (imag-part z) | |||||||||
Parameters |
|
|||||||||
Description | imag-part computes the imaginary part of the number z. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Native procedure | ||||||
Format | (index->rgb col) | ||||||
Parameters |
|
||||||
Description | index->rgb reads the actual RGB values for the
color number col from the system colortable and
returns them as a newly allocated list of 3 integers each
in the range 0-255. On systems running older OS versions than 3.5, (0 0 0) is returned. |
||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Native procedure | ||||||
Format | (inexact->exact num) | ||||||
Parameters |
|
||||||
Description | inexact->exact converts the floating point number num to an integer by truncating. If num is already an integer, integer just returns it. When required, a big integer may be returned. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Native procedure | ||||||
Format | (inexact? num) | ||||||
Parameters |
|
||||||
Description | inexact? returns #t for reals and complexs and #f for other numbers. LispMe doesn't support the exactness property of general numbers, all non-integer numbers are considered inexact. | ||||||
R4RS Compliance | Exactness property not stored | ||||||
Examples |
|
Category | Library procedure | |||
Format | (input prompt) | |||
Parameters |
|
|||
Description | input displays a dialog where the user can input a LispMe object which will be returned. prompt is displayed as a prompt text in the input dialog. input uses the standard LispMe parser to create an object from its textual representation, so all kind of syntax errors are possible. The type of the object is solely determined by the data input. | |||
R4RS Compliance | LispMe extension. Note that this procedure was called read in earlier versions. This has been changed to avoid confusion with the R4RS read. | |||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (input-port? obj) | |||||||||
Parameters |
|
|||||||||
Description | input-port? returns #t for a port opened for input by open-input-file and #f for any other object. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Library procedure | |||
Format | (input-string prompt) | |||
Parameters |
|
|||
Description | input-string displays a dialog where the user can input any text which will be returned as a string. prompt is displayed as a prompt text in the input dialog. input-string accepts any text entered. | |||
R4RS Compliance | LispMe extension. Note that this procedure was called read-string in earlier versions. This has been changed to be consistent with input. | |||
Examples |
|
Category | Deprecated, use inexact->exact instead | ||||||
Format | (integer num) | ||||||
Parameters |
|
||||||
Description | integer converts the floating point number num to an integer by truncating. If num is already an integer, integer just returns it. When required, a big integers may be returned. See also truncate. | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (integer->char int) | ||||||
Parameters |
|
||||||
Description | integer->char returns the char with the ASCII code int. Only the lower 8 bit of int are used (int mod 256). You should use a tool like AsciiChart to see characters and their codes on your Pilot. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure | ||||||||||||
Format | (integer? obj) | ||||||||||||
Parameters |
|
||||||||||||
Description | integer? returns #t for integer numbers and #f for any other object. | ||||||||||||
R4RS Compliance | Full | ||||||||||||
Examples |
|
Category | Variable |
Format | it |
Description | it is a variable which it automatically updated to the result of the last evaluation, so you can use it in subsequent evaluations. |
R4RS Compliance | LispMe extension |
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