diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-01-19 21:37:37 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-01-19 21:37:37 -0500 |
commit | 79a6a3efc46c50266e8167c476f05963149ad17c (patch) | |
tree | 288de24d2bcdf8d0852a252798941b3499d26032 /doc | |
parent | 039453697ec95d3b0bbc5ed25298768df9bdf792 (diff) |
utils: Add vlist-ref* and list->vlist*.
* sly/utils.scm (vlist-ref*, list->vlist*): New procedures.
* doc/api/utils.texi: Document them.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/utils.texi | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/api/utils.texi b/doc/api/utils.texi index 308daee..4858010 100644 --- a/doc/api/utils.texi +++ b/doc/api/utils.texi @@ -72,7 +72,7 @@ an object within the guardian is GC'd. Reaping is ensured to happen from the same thread that is running the game loop. @end deffn -@deffn memoize @var{proc} +@deffn {Scheme Procedure} memoize @var{proc} Return a memoizing version of @code{proc}. @end deffn @@ -108,3 +108,12 @@ Like @code{chain*} but for a single argument. @end example @end deffn + +@deffn {Scheme Procedure} list->vlist* @var{lst} +Convert @code{lst} and all sub-lists within to vlists. +@end deffn + +@deffn {Scheme Procedure} list->vlist* @var{lst} @var{index} [@dots{}] +Return the element at index @code{index @dots{}} in the nested vlist +structure @code{vlist}. +@end deffn |