diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-03 07:44:53 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-03 07:44:53 -0700 |
commit | 9378cb7d1ea79de9fc20bdfeb5b5c912189cb6cb (patch) | |
tree | 50f5658c5d7e0cafd7167a4e3ff8850f7bebefed | |
parent | 37f53c36cdfc3c5e69e3b20e74baf4bef8b82f12 (diff) | |
download | txr-9378cb7d1ea79de9fc20bdfeb5b5c912189cb6cb.tar.gz txr-9378cb7d1ea79de9fc20bdfeb5b5c912189cb6cb.tar.bz2 txr-9378cb7d1ea79de9fc20bdfeb5b5c912189cb6cb.zip |
doc: update less on vectors text.
* txr.1: Improve wording in the description
of how the less function operates on vectors.
-rw-r--r-- | txr.1 | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -15369,10 +15369,15 @@ Note that the empty list nil compared to a cons is handled by type-based precedence, described below. -If the arguments are vectors, they are compared lexicographically, similar + +Two vectors are compared by +.code less +lexicographically, similarly to strings. Corresponding elements, starting with element 0, of the -vectors are compared until an index position is found where the vectors -differ. If this differing position is beyond the end of one of the two vectors, +vectors are compared until an index position is found where corresponding +elements of the two vectors are not +.metn equal . +If this differing position is beyond the end of one of the two vectors, then the shorter vector is considered to be lesser. Otherwise, the result of .code less |