DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(guile.info.gz) SRFI-1 Association Lists

Info Catalog (guile.info.gz) SRFI-1 Deleting (guile.info.gz) SRFI-1 (guile.info.gz) SRFI-1 Set Operations
 
 39.3.9 Association Lists
 ------------------------
 
 Association lists are described in detail in section  Association
 Lists.  The present section only documents the additional procedures
 for dealing with association lists defined by SRFI-1.
 
  -- Scheme Procedure: assoc key alist [=]
      Return the pair from ALIST which matches KEY.  Equality is
      determined by =, which defaults to `equal?' if not given.  ALIST
      must be an association lists--a list of pairs.
 
  -- Scheme Procedure: alist-cons key datum alist
      Equivalent to
 
           (cons (cons KEY DATUM) ALIST)
 
      This procedure is used to coons a new pair onto an existing
      association list.
 
  -- Scheme Procedure: alist-copy alist
      Return a newly allocated copy of ALIST, that means that the spine
      of the list as well as the pairs are copied.
 
  -- Scheme Procedure: alist-delete key alist [=]
  -- Scheme Procedure: alist-delete! key alist [=]
      Return a list containing the pairs of ALIST, but without the pairs
      whose CARS are equal to KEY.  Equality is determined by =, which
      defaults to `equal?' if not given.
 
      `alist-delete!' is allowed, but not required to modify the
      structure of the list ALIST in order to produce the result.
 
Info Catalog (guile.info.gz) SRFI-1 Deleting (guile.info.gz) SRFI-1 (guile.info.gz) SRFI-1 Set Operations
automatically generated byinfo2html