Category | Special form | ||||||
Format |
|
||||||
Parameters |
|
||||||
Description | macro creates a new special form with keyword
var. When compiling an expression whose first subexpression is a symbol and this symbol is bound by an macro definition, the entire expression (unevaluated) is bound to the parameter arg and the expri are evaluated in order from left to right. The last expri should evaluate to another expression, which is compiled instead of the original expression. As macro expansions can't be interrupted by the Break button for technical reasons, there are two limits:
macro-definitions are allowed at top-level only, not inside other expressions. Macros may be recursive. The return value of a macro definition is #n in this implementation. | ||||||
R4RS Compliance | LispMe extension, but according to several other macro systems | ||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (macro? obj) | ||||||
Parameters |
|
||||||
Description | macro? returns #t for a macro created by the macro special form and #f for any other object. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Native procedure (MathLib required) | |||||||||
Format | (magnitude z) | |||||||||
Parameters |
|
|||||||||
Description | magnitude computes the magnitude (or absolute value) of the number z. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Native procedure | ||||
Format | (make-client-socket host port) | ||||
Parameters |
|
||||
Description | make-client-socket creates a stream socket and
connects it to host host at port port.
Host can be a symbolic name (like "www.lispme.de") which will be
resolved by the DNS configured for the Palm's IP connection, or a
numeric IP address written as a string like "127.0.0.1". To retrieve the ports connected to this socket use socket-input and socket-output. Currently only stream sockets are supported. |
||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||||
Format | (make-date y m d) | ||||||
Parameters |
|
||||||
Description | make-date creates a date value from year, month, and date. Currently, the arguments are not checked, so don't be surprised by the results from PalmOS on illegal parameters... | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Primitive procedure (MathLib required) | ||||||
Format | (make-polar mag ang) | ||||||
Parameters |
|
||||||
Description | make-polar constructs a complex number from the magnitude mag and the angle ang. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure (MathLib required) | ||||||
Format | (make-rectangular re im) | ||||||
Parameters |
|
||||||
Description | make-rectangular constructs a complex number from the real part re and the imaginary part re. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Native procedure | |||
Format | (make-strarr list) | |||
Parameters |
|
|||
Description | make-strarr prints all elements in list
in human-readable format (see
display) and creates
a string array in internal PalmOS format. The string array foreign datatype is normally used internally for holding the list items in a user interface List control, but it may be occasionally usefull for application programs, too. |
|||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | ||||
Format | (make-string len char) | ||||
Parameters |
|
||||
Description | make-string creates a newly allocated string of length len, where each character is initialized to char. | ||||
R4RS Compliance | Fill char is required | ||||
Examples |
|
Category | Native procedure | ||||
Format | (make-time h m) | ||||
Parameters |
|
||||
Description | make-time creates a time value from hour and minute. There are no seconds in a PalmOS time, sorry :-( | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | |||
Format | (make-ts num) | |||
Parameters |
|
|||
Description | make-ts creates a timestamp value from the number of seconds since January 1st 1904, midnight (the base of PalmOS date calculations). | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | ||||
Format | (make-vector len fill) | ||||
Parameters |
|
||||
Description | make-vector creates a newly allocated vector of length len, where each element is initialized to fill. | ||||
R4RS Compliance | Fill value is required | ||||
Examples |
|
Category | Library procedure | ||||
Format | (map proc list) | ||||
Parameters |
|
||||
Description | map creates a newly allocated lists, where each element is the result of applying proc to the corresponding element of list. | ||||
R4RS Compliance | Supports only one list | ||||
Examples |
|
Category | Library procedure | ||||||
Format | (max comp1 comp2 ...) | ||||||
Parameters |
|
||||||
Description | max returns the largest of some objects, according to the > procedure. Note that max handles chars and strings, too. At least one object must be specified. | ||||||
R4RS Compliance | Full and works for strings and characters, too. | ||||||
Examples |
|
Category | Native procedures | ||||||||||||
Formats |
|
||||||||||||
Parameters |
|
||||||||||||
Description | These procedures return the first sublist of list, whose car is obj. If none is found, #f is returned. To compare obj with the car, member uses equal?, memq uses eq?, and memv uses eqv?. | ||||||||||||
R4RS Compliance | Full | ||||||||||||
Examples |
|
Category | UI event | ||
Format | (menu id) | ||
Parameters |
|
||
Description | menu is the event posted when the user has selected a menu item or invoked a menu command by a command stroke shortcut. |
Category | Native procedure | |||
Format | (message obj) | |||
Parameters |
|
|||
Description | message prints obj using display to a message box (see User message). The return value is #n. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Library procedure | ||||||
Format | (min comp1 comp2 ...) | ||||||
Parameters |
|
||||||
Description | min returns the smallest of some objects, according to the < procedure. Note that min handles chars and strings, too. At least one object must be specified. | ||||||
R4RS Compliance | Full and works for strings and characters, too. | ||||||
Examples |
|
Category | Library procedure | |||||||||||||||
Format | (modulo int1 int2) | |||||||||||||||
Parameters |
|
|||||||||||||||
Description | modulo divides two integer numbers and returns the remainder. The sign of the result is always the sign of the divisor, in contrast to remainder. Division by zero is an error. | |||||||||||||||
R4RS Compliance | Full | |||||||||||||||
Examples |
|
Category | Native procedure | ||||
Format | (move x y) | ||||
Parameters |
|
||||
Description | move updates the current point stored in
*gstate*
to (x,y). See here for details on the graphic state. The return value is #n to avoid trashing the graphics. |
||||
R4RS Compliance | LispMe extension | ||||
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