diff options
author | Mark H Weaver <mhw@netris.org> | 2013-03-29 11:33:59 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2013-03-29 11:33:59 -0400 |
commit | 0ddf484d3eeff9238cb4bf6f89d461748f42cb1c (patch) | |
tree | 7e9219eb0a0b6397a3c80bc139f51fd9b9004ec3 /doc/ref | |
parent | 4702deb424633ad02c495c01d950b973c0ead8ea (diff) | |
download | guile-0ddf484d3eeff9238cb4bf6f89d461748f42cb1c.tar.gz |
Revert "doc: Consider `stream-null' as a variable."
This reverts commit 4a0821a8d5cfff50fef8c119a0d76355b6126009.
Diffstat (limited to 'doc/ref')
-rw-r--r-- | doc/ref/srfi-modules.texi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/ref/srfi-modules.texi b/doc/ref/srfi-modules.texi index 653cb05fb..1fc60984a 100644 --- a/doc/ref/srfi-modules.texi +++ b/doc/ref/srfi-modules.texi @@ -3844,7 +3844,7 @@ again. SRFI-41 can be made available with: SRFI-41 Streams are based on two mutually-recursive abstract data types: An object of the @code{stream} abstract data type is a promise that, -when forced, is either @var{stream-null} or is an object of type +when forced, is either @code{stream-null} or is an object of type @code{stream-pair}. An object of the @code{stream-pair} abstract data type contains a @code{stream-car} and a @code{stream-cdr}, which must be a @code{stream}. The essential feature of streams is the systematic @@ -3862,16 +3862,16 @@ stream, and is only forced on demand. @subsubsection SRFI-41 Stream Primitives This library provides eight operators: constructors for -@var{stream-null} and @code{stream-pair}s, type predicates for streams +@code{stream-null} and @code{stream-pair}s, type predicates for streams and the two kinds of streams, accessors for both fields of a @code{stream-pair}, and a lambda that creates procedures that return streams. -@defvr {Scheme Variable} stream-null +@deffn {Scheme Variable} stream-null A promise that, when forced, is a single object, distinguishable from -all other objects, that represents the null stream. @var{stream-null} +all other objects, that represents the null stream. @code{stream-null} is immutable and unique. -@end defvr +@end deffn @deffn {Scheme Syntax} stream-cons object-expr stream-expr Creates a newly-allocated stream containing a promise that, when forced, @@ -4003,7 +4003,7 @@ Returns a newly-allocated stream containing the elements from Returns a newly-allocated stream containing in its elements the characters on the port. If @var{port} is not given it defaults to the current input port. The returned stream has finite length and is -terminated by @var{stream-null}. +terminated by @code{stream-null}. It looks like one use of @code{port->stream} would be this: |