| Category | Primitive procedure | |||||||||||||||
| Format | (object->string obj) | |||||||||||||||
| Parameters |
|
|||||||||||||||
| Description | object->string uses the standard LispMe printer to build the textual representation of obj as a string. The printing convention of write is used. The resulting string is truncated to 4096 characters. | |||||||||||||||
| R4RS Compliance | LispMe extension. object->string subsumes R4RS procedures symbol->string and number->string. | |||||||||||||||
| Examples |
|
| Category | Library procedure | ||||||
| Format | (odd? int) | ||||||
| Parameters |
|
||||||
| Description | odd? returns #t, if int is odd. Otherwise it returns #f. See also even?. | ||||||
| R4RS Compliance | Full | ||||||
| Examples |
|
| Category | Native procedure | |||
| Format | (open-append-file string) | |||
| Parameters |
|
|||
| Description | open-append-file searches a memo with name string and opens it for output, which will be appended to its former contents. If the memo doesn't exist, a new one is created like by open-output-file For more information about files/memos see here. | |||
| R4RS Compliance | LispMe extension | |||
| Examples |
|
| Category | Native procedure | |||||||||
| Format | (open-input-file string [type]) | |||||||||
| Parameters |
|
|||||||||
| Description | open-input-file searches a memo or DOC with name
string and returns the input port associated with
the opened memo. If the memo doesn't exist, an
error is raised. Possible file types are
|
|||||||||
| R4RS Compliance | Full | |||||||||
| Examples |
|
| Category | Native procedure | |||
| Format | (open-input-list list) | |||
| Parameters |
|
|||
| Description | open-input-list creates an input port delivering the contents of each string in list. This procedure is in fact a by-product of LispMe's port implementation and sometimes useful since it avoids allocating a temporary big string in some cases. | For more information about files/memos see here.|||
| R4RS Compliance | LispMe extension | |||
| Examples |
|
| Category | Native procedure | |||
| Format | (open-input-string string) | |||
| Parameters |
|
|||
| Description | open-input-string creates an input port delivering the contents of string. | For more information about files/memos see here.|||
| R4RS Compliance | LispMe extension | |||
| Examples |
|
| Category | Native procedure | |||||||||
| Format | (open-output-file string [type]) | |||||||||
| Parameters |
|
|||||||||
| Description | open-output-file creates a new memo with name
string and returns the output port associated with
the new memo. Possible file types are
|
|||||||||
| R4RS Compliance | Full | |||||||||
| Examples |
|
| Category | Native procedure | |||
| Format | (open-output-string) | |||
| Parameters | None | |||
| Description | open-output-string creates a new port which accumulates output into a string and returns this string output port. The accumulated output can be accessed by get-output-string. | |||
| R4RS Compliance | LispMe extension | |||
| Examples |
|
| Category | Special form | |||||||||
| Format | (or expr1 ...) | |||||||||
| Parameters |
|
|||||||||
| Description | or evaluates the expri in left to right order. If any expression is true, the evaluation is finished. In any case, the value of the last expression evaluated is returned. Remember that '() is considered true in LispMe. | |||||||||
| R4RS Compliance | Full | |||||||||
| Examples |
|
| Category | Primitive procedure | |||||||||
| Format | (output-port? obj) | |||||||||
| Parameters |
|
|||||||||
| Description | output-port? returns #t for a port opened for output by open-output-file and #f for any other object. | |||||||||
| R4RS Compliance | Full | |||||||||
| Examples |
|
| Category | Primitive procedure | |||
| Format | (own-gui switch) | |||
| Parameters |
|
|||
| Description | When switch is true, most controls and
fields in LispMe's main dialog
are set unusable, so that they won't respond to events and you can
handle events by yourself. The only exception is the
break button which is never
disabled to allow interrupting the process. When switch is false, LispMe's main dialog responds to events as usual. The return value is switch. |
|||
| 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