From 9378cb7d1ea79de9fc20bdfeb5b5c912189cb6cb Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 3 Oct 2016 07:44:53 -0700 Subject: doc: update less on vectors text. * txr.1: Improve wording in the description of how the less function operates on vectors. --- txr.1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/txr.1 b/txr.1 index 32f06a45..3c8fb136 100644 --- a/txr.1 +++ b/txr.1 @@ -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 -- cgit v1.2.3