diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-10-17 07:20:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-10-17 07:20:26 -0700 |
commit | 061d34050fcedfec5ceaf6e46657775a3cc4246a (patch) | |
tree | e4b8672924def8f20843189e703902447557b47c | |
parent | e85df663256adcc557e9e77ada31db4da60975b0 (diff) | |
download | txr-061d34050fcedfec5ceaf6e46657775a3cc4246a.tar.gz txr-061d34050fcedfec5ceaf6e46657775a3cc4246a.tar.bz2 txr-061d34050fcedfec5ceaf6e46657775a3cc4246a.zip |
doc: opip, flow: note about no-argument case.
* txr.1: It's a developer surprise that (flow x) returns
nil rather than x; which is due to the documented behavior
of chain, when it has no arguments. Let's add cautionary
notes.
-rw-r--r-- | txr.1 | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -58027,6 +58027,14 @@ and macros use their macro environment in determining whether a form is a macro call, thereby respecting lexical scoping. +Note: an +.code opip +form with no arguments specifies a function which returns +.codn nil , +which follows from a documented property of the +.code chain +function. + .TP* Example: Take each element from the list .code "(1 2 3 4)" @@ -58093,6 +58101,18 @@ is equivalent to the application of an function to the value of .metn form . +Note: if there are no +.meta opip-arg +arguments, then +.code flow +evaluates the +.code x +argument and returns +.codn nil ; +which follows from the behavior of +.code opip +when that operator is invoked with no arguments. + .TP* Examples: .verb |