diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-03-28 07:34:01 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-03-28 07:34:01 -0700 |
commit | 051bf360110a5b9649fe9a2b5b35b2dcfed868d6 (patch) | |
tree | 52c45d2a3d6f45b96296481949a301b301952d3d /txr.1 | |
parent | fb10286e0a3d3da9599ae43b42db1d77d55ae46b (diff) | |
download | txr-051bf360110a5b9649fe9a2b5b35b2dcfed868d6.tar.gz txr-051bf360110a5b9649fe9a2b5b35b2dcfed868d6.tar.bz2 txr-051bf360110a5b9649fe9a2b5b35b2dcfed868d6.zip |
* eval.c (eval_init): register get-lines as having one optional
argument.
* lib.c (lazy_stream_cons): Default the argument to std_input.
* txr.1: Document that the stream is optional in get-lines.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -15034,14 +15034,20 @@ another lazy cons (as in the example under .coNP Functions @ lazy-stream-cons and @ get-lines .synb .mets (lazy-stream-cons << stream ) -.mets (get-lines << stream ) +.mets (get-lines <> [ stream ]) .syne .desc The .code lazy-stream-cons and .code get-lines -functions are synonyms. Thus, the following +functions are synonyms, except that the +.meta stream +argument is optional in +.code get-lines +and defaults to +.codn *stdin* . +Thus, the following description of .code lazy-stream-cons also applies to |