summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-03-28 07:34:01 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-03-28 07:34:01 -0700
commit051bf360110a5b9649fe9a2b5b35b2dcfed868d6 (patch)
tree52c45d2a3d6f45b96296481949a301b301952d3d /txr.1
parentfb10286e0a3d3da9599ae43b42db1d77d55ae46b (diff)
downloadtxr-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.110
1 files changed, 8 insertions, 2 deletions
diff --git a/txr.1 b/txr.1
index 6cff30e4..8c654150 100644
--- a/txr.1
+++ b/txr.1
@@ -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