Changes between Version 3 and Version 4 of ImmutablePairsCowan


Ignore:
Timestamp:
07/06/13 16:56:59 (4 years ago)
Author:
cowan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ImmutablePairsCowan

    v3 v4  
    1313== Syntax == 
    1414 
    15 `(iquote `<list>`)` 
     15`(iquote `<datum>`)` 
    1616 
    17 Returns an immutable version of <list>.  If <list> is not a pair, it is returned. 
     17Returns a copy of <datum> with all pairs replaced by immutable pairs.  Note that <datum> can be circular or have shared structure, which is preserved. 
    1818 
    1919 
    2020== Procedures == 
     21 
     22`(immutable `''obj''`)` 
     23 
     24Returns a copy of ''obj'' with all pairs replaced by immutable pairs.  Note that ''obj'' can be circular or have shared structure, which is preserved.  If there are no pairs, the result may be the same as the argument. 
     25 
     26`(mutable `''obj''`)` 
     27 
     28Returns a copy of ''obj'' with all immutable pairs replaced by pairs.  Note that ''obj'' can be circular or have shared structure, which is preserved.  If there are no immutable pairs, the result may be the same as the argument. 
    2129 
    2230The following procedures are renamed from those in [http://srfi.schemers.org/srfi-1/srfi-1.html SRFI 1].  They are a superset of those in R5RS and R7RS-small.  The intention is to make immutable lists as close to a drop-in replacement for ordinary lists as possible.  Each one does exactly what you'd expect from reading SRFI 1.