diff options
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/sequences.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/sequences.texi b/doc/lispref/sequences.texi index 554716084ee..955ad669b80 100644 --- a/doc/lispref/sequences.texi +++ b/doc/lispref/sequences.texi | |||
| @@ -1777,6 +1777,11 @@ If the ring is full, this function removes the newest element to make | |||
| 1777 | room for the inserted element. | 1777 | room for the inserted element. |
| 1778 | @end defun | 1778 | @end defun |
| 1779 | 1779 | ||
| 1780 | @defun ring-resize ring size | ||
| 1781 | Set the size of @var{ring} to @var{size}. If the new size is smaller, | ||
| 1782 | then the oldest items in the ring are discarded. | ||
| 1783 | @end defun | ||
| 1784 | |||
| 1780 | @cindex fifo data structure | 1785 | @cindex fifo data structure |
| 1781 | If you are careful not to exceed the ring size, you can | 1786 | If you are careful not to exceed the ring size, you can |
| 1782 | use the ring as a first-in-first-out queue. For example: | 1787 | use the ring as a first-in-first-out queue. For example: |