From 79a6a3efc46c50266e8167c476f05963149ad17c Mon Sep 17 00:00:00 2001 From: David Thompson Date: Mon, 19 Jan 2015 21:37:37 -0500 Subject: utils: Add vlist-ref* and list->vlist*. * sly/utils.scm (vlist-ref*, list->vlist*): New procedures. * doc/api/utils.texi: Document them. --- doc/api/utils.texi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'doc') 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 -- cgit v1.2.3