guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] branch main updated: Doc: document that eq?, eqv? and eq


From: Arne Babenhauserheide
Subject: [Guile-commits] branch main updated: Doc: document that eq?, eqv? and equal? take any number of arguments
Date: Sat, 10 Dec 2022 21:05:00 -0500

This is an automated email from the git hooks/post-receive script.

arnebab pushed a commit to branch main
in repository guile.

The following commit(s) were added to refs/heads/main by this push:
     new b54263dc9 Doc: document that eq?, eqv? and equal? take any number of 
arguments
b54263dc9 is described below

commit b54263dc98b2700fa777745405ad7651601bcdc6
Author: Jean Abou Samra <jean@abou-samra.fr>
AuthorDate: Sun Nov 6 15:55:24 2022 +0100

    Doc: document that eq?, eqv? and equal? take any number of arguments
---
 doc/ref/api-utility.texi | 26 ++++++++++++++------------
 1 file changed, 14 insertions(+), 12 deletions(-)

diff --git a/doc/ref/api-utility.texi b/doc/ref/api-utility.texi
index cb7e32f2b..3532bbb84 100644
--- a/doc/ref/api-utility.texi
+++ b/doc/ref/api-utility.texi
@@ -55,11 +55,12 @@ made up of the same pairs.  Such lists look the same (when 
printed),
 and @code{equal?} will consider them the same.
 
 @sp 1
-@deffn {Scheme Procedure} eq? x y
+@deffn {Scheme Procedure} eq? @dots{}
 @deffnx {C Function} scm_eq_p (x, y)
 @rnindex eq?
-Return @code{#t} if @var{x} and @var{y} are the same object, except
-for numbers and characters.  For example,
+The Scheme procedure returns @code{#t} if all of its arguments are the
+same object, except for numbers and characters.  The C function does the
+same but takes exactly two arguments.  For example,
 
 @example
 (define x (vector 1 2 3))
@@ -109,15 +110,16 @@ The @code{==} operator should not be used on @code{SCM} 
values, an
 @end deftypefn
 
 @sp 1
-@deffn {Scheme Procedure} eqv? x y
+@deffn {Scheme Procedure} eqv? @dots{}
 @deffnx {C Function} scm_eqv_p (x, y)
 @rnindex eqv?
-Return @code{#t} if @var{x} and @var{y} are the same object, or for
-characters and numbers the same value.
+The Scheme procedure returns @code{#t} if all of its arguments are the
+same object, or for characters and numbers the same value.  The C function
+is similar but takes exactly two arguments.
 
 On objects except characters and numbers, @code{eqv?} is the same as
-@code{eq?} above, it's true if @var{x} and @var{y} are the same
-object.
+@code{eq?} above.  @code{(eqv? x y)} is true if @var{x} and @var{y} are
+the same object.
 
 If @var{x} and @var{y} are numbers or characters, @code{eqv?} compares
 their type and value.  An exact number is not @code{eqv?} to an
@@ -128,13 +130,13 @@ inexact number (even if their value is the same).
 (eqv? 1 1.0)     @result{} #f
 @end example
 @end deffn
-
 @sp 1
-@deffn {Scheme Procedure} equal? x y
+@deffn {Scheme Procedure} equal? @dots{}
 @deffnx {C Function} scm_equal_p (x, y)
 @rnindex equal?
-Return @code{#t} if @var{x} and @var{y} are the same type, and their
-contents or value are equal.
+The Scheme procedure returns @code{#t} if all of its arguments are the
+same type, and their contents or value are equal.  The C function is
+similar, but takes exactly two arguments.
 
 For a pair, string, vector, array or structure, @code{equal?} compares the
 contents, and does so using the same @code{equal?} recursively,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]