mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-03 21:30:29 +02:00
(Adding or Setting Alist Entries): Use first-person.
This commit is contained in:
parent
097d394a37
commit
244dbfa27b
1 changed files with 3 additions and 3 deletions
|
@ -4506,7 +4506,7 @@ use @code{list-copy} to copy the old association list before modifying
|
||||||
it.
|
it.
|
||||||
|
|
||||||
@deffn primitive acons key value alist
|
@deffn primitive acons key value alist
|
||||||
Adds a new key-value pair to @var{alist}. A new pair is
|
Add a new key-value pair to @var{alist}. A new pair is
|
||||||
created whose car is @var{key} and whose cdr is @var{value}, and the
|
created whose car is @var{key} and whose cdr is @var{value}, and the
|
||||||
pair is consed onto @var{alist}, and the new list is returned. This
|
pair is consed onto @var{alist}, and the new list is returned. This
|
||||||
function is @emph{not} destructive; @var{alist} is not modified.
|
function is @emph{not} destructive; @var{alist} is not modified.
|
||||||
|
@ -4540,12 +4540,12 @@ is @code{(KEY . VALUE)}, not just the value.
|
||||||
@deffn primitive assq key alist
|
@deffn primitive assq key alist
|
||||||
@deffnx primitive assv key alist
|
@deffnx primitive assv key alist
|
||||||
@deffnx primitive assoc key alist
|
@deffnx primitive assoc key alist
|
||||||
Fetches the entry in @var{alist} that is associated with @var{key}. To
|
Fetch the entry in @var{alist} that is associated with @var{key}. To
|
||||||
decide whether the argument @var{key} matches a particular entry in
|
decide whether the argument @var{key} matches a particular entry in
|
||||||
@var{alist}, @code{assq} compares keys with @code{eq?}, @code{assv}
|
@var{alist}, @code{assq} compares keys with @code{eq?}, @code{assv}
|
||||||
uses @code{eqv?} and @code{assoc} uses @code{equal?}. If @var{key}
|
uses @code{eqv?} and @code{assoc} uses @code{equal?}. If @var{key}
|
||||||
cannot be found in @var{alist} (according to whichever equality
|
cannot be found in @var{alist} (according to whichever equality
|
||||||
predicate is in use), then @code{#f} is returned. These functions
|
predicate is in use), then return @code{#f}. These functions
|
||||||
return the entire alist entry found (i.e. both the key and the value).
|
return the entire alist entry found (i.e. both the key and the value).
|
||||||
@end deffn
|
@end deffn
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue