Search

( append [ list? list ] ... ) list? ( append [ list? list ] ... obj ) *
Returns a list consisting of the elements of the first list followed by the elements of the other list s. If there are no arguments, the empty list is returned. If there is exactly one argument, it is returned. Otherwise the resulting list is always newly allocated, except that it shares structure with the last argument. An improper list results if the last argument is not a proper list.
( command-line ) list?
Returns the command line passed to the process as a list of strings. The first string corresponds to the command name, and is implementation-dependent. It is an error to mutate any of these strings.
( features ) list?
Returns a list of the feature identifiers which cond-expand treats as true. It is an error to modify this list.
( get-environment-variables ) list?
return ' ( ( [ string? envname ] . [ string? value ] ) ... )
Returns the names and values of all the environment variables as an alist, where the car of each entry is the name of an environment variable and the cdr is its value, both as strings. The order of the list is unspecified. It is an error to mutate any of these strings or the alist itself.
( make-list [ integer? k ] ) list? ( make-list [ integer? k ] obj ) list?
Returns a newly allocated list of k elements. If a second argument is given, then each element is initialized to fill. Otherwise the initial contents of each element is unspecified.
( map [ procedure? proc ] [ list? list1 ] [ list? list2 ] ... ) list?
proc ( λ obj1 obj2 ... ) *
It is an error if proc does not accept as many arguments as there are lists and return a single value. The map procedure applies proc element-wise to the elements of the lists and returns a list of the results, in order. If more than one list is given and not all lists have the same length, map terminates when the shortest list runs out. It is an error for proc to mutate any of the lists. The dynamic order in which proc is applied to the elements of the lists is unspecified. If multiple returns occur from map, the values returned by earlier returns are not mutated.
( member obj [ list? list ] ) ( or #f list? ) ( member obj [ list? list ] [ procedure? compare ] ) ( or #f list? )
compare ( λ obj1 obj2 ) *
memq, memv, member These procedures return the first sublist of list whose car is obj , where the sublists of list are the non-empty lists returned by (list-tail list k) for k less than the length of list . If obj does not occur in list , then #f (not the empty list) is returned. The memq procedure uses eq? to compare obj with the elements of list , while memv uses eqv? and member uses compare, if given, and equal? otherwise.
( memq obj [ list? list ] ) ( or #f list? )
memq, memv, member These procedures return the first sublist of list whose car is obj , where the sublists of list are the non-empty lists returned by (list-tail list k) for k less than the length of list . If obj does not occur in list , then #f (not the empty list) is returned. The memq procedure uses eq? to compare obj with the elements of list , while memv uses eqv? and member uses compare, if given, and equal? otherwise.
( memv obj [ list? list ] ) ( or #f list? )
memq, memv, member These procedures return the first sublist of list whose car is obj , where the sublists of list are the non-empty lists returned by (list-tail list k) for k less than the length of list . If obj does not occur in list , then #f (not the empty list) is returned. The memq procedure uses eq? to compare obj with the elements of list , while memv uses eqv? and member uses compare, if given, and equal? otherwise.
( string->list [ string? string ] ) list? ( string->list [ string? string ] [ integer? start ] ) list? ( string->list [ string? string ] [ integer? start ] [ integer? end ] ) list?
return ' ( [ char? c ] ... )
string->list, list->string The string->list procedure returns a newly allocated list of the characters of string between start and end. list->string returns a newly allocated string formed from the elements in the list list. In both procedures, order is preserved. string->list and list->string are inverses so far as equal? is concerned.
( vector->list [ vector? vector ] ) list? ( vector->list [ vector? vector ] [ integer? start ] ) list? ( vector->list [ vector? vector ] [ integer? start ] [ integer? end ] ) list?
vector->list, list->vector The vector->list procedure returns a newly allocated list of the objects contained in the elements of vector between start and end. The list->vector procedure returns a newly created vector initialized to the elements of the list list. In both procedures, order is preserved.