mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 23:50:18 +02:00
(Array Procedures): @pxref for `equal?'.
(Shared Arrays): Correction to make-shared-array stride example, need `list' on the mapper return value.
This commit is contained in:
parent
5ae7fddd02
commit
dc9813aee5
1 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
@c -*-texinfo-*-
|
@c -*-texinfo-*-
|
||||||
@c This is part of the GNU Guile Reference Manual.
|
@c This is part of the GNU Guile Reference Manual.
|
||||||
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005
|
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
||||||
@c Free Software Foundation, Inc.
|
@c Free Software Foundation, Inc.
|
||||||
@c See the file guile.texi for copying conditions.
|
@c See the file guile.texi for copying conditions.
|
||||||
|
|
||||||
|
@ -2038,8 +2038,9 @@ is unspecified.
|
||||||
Return @code{#t} if all arguments are arrays with the same shape, the
|
Return @code{#t} if all arguments are arrays with the same shape, the
|
||||||
same type, and have corresponding elements which are either
|
same type, and have corresponding elements which are either
|
||||||
@code{equal?} or @code{array-equal?}. This function differs from
|
@code{equal?} or @code{array-equal?}. This function differs from
|
||||||
@code{equal?} in that a one dimensional shared array may be
|
@code{equal?} (@pxref{Equality}) in that a one dimensional shared
|
||||||
@var{array-equal?} but not @var{equal?} to a vector or uniform vector.
|
array may be @code{array-equal?} but not @code{equal?} to a vector or
|
||||||
|
uniform vector.
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
@c FIXME: array-map! accepts no source arrays at all, and in that
|
@c FIXME: array-map! accepts no source arrays at all, and in that
|
||||||
|
@ -2237,7 +2238,7 @@ taken. The following is every third element,
|
||||||
|
|
||||||
@example
|
@example
|
||||||
(make-shared-array #1(a b c d e f g h i j k l)
|
(make-shared-array #1(a b c d e f g h i j k l)
|
||||||
(lambda (i) (* i 3))
|
(lambda (i) (list (* i 3)))
|
||||||
4)
|
4)
|
||||||
@result{} #1(a d g j)
|
@result{} #1(a d g j)
|
||||||
@end example
|
@end example
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue