Category | Primitive procedures | |||||||||
Format | (c...r pair) | |||||||||
Parameters |
|
|||||||||
Description | c...r applies a sequence of car and cdr procedures to pair and returns the result. The ... may be any combination of upto 12 (!) a or d, where an a corresponds to car and a d corresponds to cdr. (cx...r pair) is equivalent to (cxr (c...r pair)), where each x is either a or d. | |||||||||
R4RS Compliance | Supports upto 12 nested applications instead of 4 | |||||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (call/cc procedure) | ||||||
Parameters |
|
||||||
Description | call/cc calls procedure with the
current continuation as its argument. The current continuation
is a special procedure (recognized by
continuation?)
of one argument and represents the remainder of the computation
from the call/cc-application. The continuation may
be called at any time later with any argument, which will be
the result of the call/cc-application. This may
happen several times, as the continuation has unlimited extent
like any other LispMe object, even when call/cc has
returned once. If the continuation is not called, the value returned by procedure is the value of this call/cc-application. |
||||||
R4RS Compliance | The verbose name call-with-current-continuation is not supported, you probably don't want to write this with Graffiti! | ||||||
Examples |
|
Category | Primitive procedure | ||||||||||||
Format | (car pair) | ||||||||||||
Parameters |
|
||||||||||||
Description | car returns the car component of pair. The car component is the first argument given in the cons procedure. | ||||||||||||
R4RS Compliance | Full | ||||||||||||
Examples |
|
Category | Special form | ||||||
Format | (case expr (guard expr1 expr2 ...) ...) | ||||||
Parameters |
|
||||||
Description | case first evaluates expr and tests
sequentially, if its value is (using
eqv?) in one of
the constant lists guard.
When the first match is encountered,
its corresponding expri are evaluated from
left to right and the value of the last
expri is returned. Note that the constant lists must not be quoted! The special keyword else can be used for an "otherwise" clause. It's an error, if no guard matches. |
||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Native procedure | ||||
Format | (cat-get-name dbref category) | ||||
Parameters |
|
||||
Description | cat-get-name retrieves the name of category from the open database dbref as a string. Category names are stored within the AppInfoBlock of a PalmOS database. They cannot be modified by LispMe, only read. The category is an integer from 0 to 15. On error, #f is returned. | ||||
R4RS Compliance | LispMe extension. | ||||
Examples |
|
Category | Primitive procedure | ||||||||||||
Format | (cdr pair) | ||||||||||||
Parameters |
|
||||||||||||
Description | cdr returns the cdr component of pair. The cdr component is the second argument given in the cons procedure. | ||||||||||||
R4RS Compliance | Full | ||||||||||||
Examples |
|
Category | Primitive procedure (MathLib required) | ||||||
Format | (ceiling num) | ||||||
Parameters |
|
||||||
Description | ceiling converts num to a floating point number and returns the smallest whole number greater than or equal to num. The result is not a LispMe integer, it's a floating point value | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure | ||||||
Format | (char->integer char) | ||||||
Parameters |
|
||||||
Description | char->integer returns the ASCII code of char. You should use a tool like AsciiChart to see characters and their codes on your Pilot. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (char? obj) | |||||||||
Parameters |
|
|||||||||
Description | char? returns #t for a character and #f for any other object. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Native procedure | ||||||
Format | (circular? obj) | ||||||
Parameters |
|
||||||
Description | circular? returns #t if obj is a list containing (at least) one cycle and #f for any other object. | ||||||
R4RS Compliance | LispMe extension | ||||||
Examples |
|
Category | Native procedure | |||
Format | (close-input-port inport) | |||
Parameters |
|
|||
Description | close-input-port closes an open input port and makes subsequent read attempts on this port fail. The return value is inport. | |||
R4RS Compliance | Full | |||
Examples |
|
Category | Native procedure | |||
Format | (close-netlib immediately) | |||
Parameters |
|
|||
Description | close-netlib closes the net library and thus terminates a dial-up connection to the Internet. If immediately is true, the connection is terminated immediately, otherwise it is put in a close-wait state which actually terminates the connection after an interval configurable in the Palm preferences connection dialog, unless an application has requested network services in the meantime. If no connection is established, this function has no effect. The return value is immediately. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (close-output-port outport) | |||
Parameters |
|
|||
Description | close-output-port closes an open output port and makes subsequent write attempts on this port fail. The return value is outport. | |||
R4RS Compliance | Full | |||
Examples |
|
Category | Native procedure | |||
Format | (close-serial serial) | |||
Parameters |
|
|||
Description | close-serial closes an open serial port and releases its hardware resources. You should always close serial ports when no more needed to keep power consumption low. The return value is serial. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Primitive procedure | ||||||||||||
Format | (complex? obj) | ||||||||||||
Parameters |
|
||||||||||||
Description | complex? returns #t for integer, real and complex numbers and #f for any other object. In fact, it's the same procedure as number? | ||||||||||||
R4RS Compliance | Full | ||||||||||||
Examples |
|
Category | Special form | |||||||||
Format | (cond (guard expr1 expr2 ...) ...) | |||||||||
Parameters |
|
|||||||||
Description | cond evaluates each guard in sequence.
When the first true guard is encountered,
its corresponding expri are evaluated from
left to right and the value of the last
expri is returned. The special keyword else, which is always true, can be used for an "otherwise" clause. It's an error, if no guard is true. |
|||||||||
R4RS Compliance | Expression sequence in each clause must not be empty | |||||||||
Examples |
|
Category | Native procedure | ||||||
Format | (conjugate z) | ||||||
Parameters |
|
||||||
Description | conjugate computes the conjugate of the number z. The conjugate of the complex number x + iy is x - iy. | ||||||
R4RS Compliance | Full | ||||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (cons obj1 obj2) | |||||||||
Parameters |
|
|||||||||
Description | cons returns a freshly allocated pair whose car component is obj1 and whose cdr component is obj2. The new pair is always unique, i.e. it is not eq? to any other object. The procedures car and cdr are used to access the components of the pair. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure | |||||||||
Format | (continuation? obj) | |||||||||
Parameters |
|
|||||||||
Description | continuation? returns #t for a continuation created with call/cc and #f for any other object. | |||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure (MathLib required) | |||||||||
Format | (cos z) | |||||||||
Parameters |
|
|||||||||
Description | cos computes the cosine of the number z.
z is an angle measured in radians.
For complex arguments z = x + yi,
the formula |
|||||||||
R4RS Compliance | Full | |||||||||
Examples |
|
Category | Primitive procedure (MathLib required) | |||||||||
Format | (cosh z) | |||||||||
Parameters |
|
|||||||||
Description | cosh computes the hyperbolic cosine of the number
z.
For complex arguments z = x + yi,
the formula |
|||||||||
R4RS Compliance | LispMe extension | |||||||||
Examples |
|
Category | Native procedure | |||
Format | (crash) | |||
Parameters | none | |||
Description | crash generates a fatal exception by reading an integer from an odd address (68000 address error) and thus requires a soft reset. This function is for testing only to reproduce crashing a session. Crashed sessions can't be continued after the soft reset and must be deleted. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | UI event | ||
Format | (ctl-enter id) | ||
Parameters |
|
||
Description | ctl-enter is the event posted when the user has tapped a control but not yet lifted the pen. |
Category | Native procedure | |||
Format | (ctl-get-label id) | |||
Parameters |
|
|||
Description | ctl-get-label returns the label text of the control with id id as a string. This function makes only sense for pushbuttons or checkboxes. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (ctl-get-val id) | |||
Parameters |
|
|||
Description | ctl-get-val returns the value of a control with id id as a boolean. This function makes only sense for pushbuttons or checkboxes. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (ctl-hit id) | |||
Parameters |
|
|||
Description | ctl-hit simulates hitting the control with id id. This function makes only sense for pushbuttons or checkboxes. The return value is #n | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | UI event | ||
Format | (ctl-repeat id) | ||
Parameters |
|
||
Description | ctl-repeat is posted each time a repeating button control triggers while the user is holding the pen down. You should return #f from your event handler to make this work correctly. |
Category | UI event | ||||
Format | (ctl-select id state) | ||||
Parameters |
|
||||
Description | ctl-selected is the event posted when the user has tapped a control and released it. |
Category | Native procedure | ||||
Format | (ctl-set-label id obj) | ||||
Parameters |
|
||||
Description | ctl-set-label sets the label text for the control with id id to obj. LispMe cares for the memory management and you don't have to reserve enough space in the resource. The return value is obj This function makes only sense for pushbuttons or checkboxes.. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | ||||
Format | (ctl-set-val id obj) | ||||
Parameters |
|
||||
Description | ctl-set-val sets the value of a control with id id to obj where #f means off and any other value on. This function makes only sense for pushbuttons or checkboxes. The return value is obj. | ||||
R4RS Compliance | LispMe extension | ||||
Examples |
|
Category | Native procedure | |||
Format | (current-ticks) | |||
Parameters | None | |||
Description | current-ticks returns the number of ticks elapsed since the last soft reset as an integer. Ticks are printed with a trailing heart symbol. | |||
R4RS Compliance | LispMe extension | |||
Examples |
|
Category | Native procedure | |||
Format | (current-ts) | |||
Parameters | None | |||
Description | current-ts returns the current timestamp from the Palm's system clock, accurate to the second. | |||
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