From a9c800e510d188837459b373a5ecb498cb809da5 Mon Sep 17 00:00:00 2001 From: Kris Katterjohn Date: Fri, 18 Jan 2019 14:25:33 -0600 Subject: [PATCH] Fix a mistake in the comment for vector= elt=? is the name of the comparator, not element=? --- vector-lib.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vector-lib.scm b/vector-lib.scm index 551f795..0bef4c3 100644 --- a/vector-lib.scm +++ b/vector-lib.scm @@ -675,13 +675,13 @@ ;;; (ELT=? ) -> boolean ;;; Determine vector equality generalized across element comparators. ;;; Vectors A and B are equal iff their lengths are the same and for -;;; each respective elements E_a and E_b (element=? E_a E_b) returns -;;; a true value. ELT=? is always applied to two arguments. Element +;;; each respective elements E_a and E_b (elt=? E_a E_b) returns a +;;; true value. ELT=? is always applied to two arguments. Element ;;; comparison must be consistent wtih EQ?; that is, if (eq? E_a E_b) -;;; results in a true value, then (ELEMENT=? E_a E_b) must result in a +;;; results in a true value, then (ELT=? E_a E_b) must result in a ;;; true value. This may be exploited to avoid multiple unnecessary ;;; element comparisons. (This implementation does, but does not deal -;;; with the situation that ELEMENT=? is EQ? to avoid more unnecessary +;;; with the situation that ELT=? is EQ? to avoid more unnecessary ;;; comparisons, but I believe this optimization is probably fairly ;;; insignificant.) ;;;