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

Alphabetic catalog of Language elements G

gc

gc starts a garbage collection.

Category Native procedure
Format (gc)
Parameters none
Description gc invokes the garbage collector explicitely. The return value is #n.
R4RS Compliance LispMe extension
Examples
(gc) => #n

gensym

gensym creates a new unique symbol.

Category Native procedure
Format (gensym)
Parameters none
Description gensym creates a new symbol, which is not eq? to any other symbol, no matter if input or created by a different call to gensym. This is guaranteed by using # as its first char, which cannot be input.
R4RS Compliance LispMe extension
Examples
(gensym) => #0 (first call)
(gensym) => #147 (several calls later)

get-clipboard-text

get-clipboard-text retrieves the system clipboard.

Category Native procedure
Format (get-clipboard-text)
Parameters none
Description get-clipboard-text retrieves the contents of the system clipboard as a string or returns #f if the clipboard is not readable.
R4RS Compliance LispMe extension
Examples
(get-clipboard-text) => "whatever the clipboard contains"

get-output-string

get-output-string retrieves the contents of a string output port.

Category Native procedure
Format (get-output-string port)
Parameters
porta string output port
Description get-output-string retrieves the string buffer of port (which must be a string output port) containing the accumulated output. You can call this procedure several times without emptying the buffer, but always the same string will be returned, so don't modify it. The port must have been created by open-output-string before.
R4RS Compliance LispMe extension
Examples
(let ((p (open-output-string)))
  (write (list 'foo 42) p)
  (get-output-string p))
=> "(foo 42)"

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