mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
add docs and tests for array->list
* libguile/generalized-arrays.c (scm_array_to_list): Add docs. * test-suite/tests/arrays.test ("array->list"): Add tests.
This commit is contained in:
parent
f5318d8b18
commit
e48a2f8705
2 changed files with 19 additions and 2 deletions
|
@ -250,8 +250,14 @@ array_to_list (scm_t_array_handle *h, size_t dim, unsigned long pos)
|
|||
|
||||
SCM_DEFINE (scm_array_to_list, "array->list", 1, 0, 0,
|
||||
(SCM array),
|
||||
"FIXME description a list consisting of all the elements, in order, of\n"
|
||||
"@var{array}.")
|
||||
"Return a list representation of @var{array}.\n\n"
|
||||
"It is easiest to specify the behavior of this function by\n"
|
||||
"example:\n"
|
||||
"@example\n"
|
||||
"(array->list #0(a)) @result{} 1\n"
|
||||
"(array->list #1(a b)) @result{} (a b)\n"
|
||||
"(array->list #2((aa ab) (ba bb)) @result{} ((aa ab) (ba bb))\n"
|
||||
"@end example\n")
|
||||
#define FUNC_NAME s_scm_array_to_list
|
||||
{
|
||||
scm_t_array_handle h;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue