Changeset 30566 in project


Ignore:
Timestamp:
03/15/14 12:37:39 (7 years ago)
Author:
juergen
Message:

documentation of cells updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/cells

    r30562 r30566  
    1313
    1414=== Programming interface
     15
     16==== cells
     17
     18<procedure>(cells [sym])</procedure>
     19
     20documentation procedure: Without an argument shows the list of exported
     21symbols, with a symbol argument shows the signature of this symbol.
    1522
    1623==== cell
     
    3744stores an item of type?
    3845
     46==== cell-ref
     47
     48<procedure>(cell-ref cell%)</procedure>
     49
     50accessor: returns the content of cell%.
     51
     52==== cell-set!
     53
     54<procedure>(cell-set! cell% val)</procedure>
     55
     56mutator: changes the content of cell%
     57
    3958=== Usage
    4059
     
    5473((cell-of? list?) cell%) ; -> #f
    5574(cell%) ; -> 5
     75(cell-ref cell%) ; -> 5
    5676(cell% 50)
    5777(cell%) ; -> 50
     78(cell-set! cell% 500)
     79(cell-ref cell%) ; -> 500
     80(cell%) ; -> 500
    5881
    5982;;; implementing a stack without any error checking
     
    87110== Last update
    88111
    89 Mar 14, 2014
     112Mar 15, 2014
    90113
    91114== Author
     
    126149== Version History
    127150
     151; 1.1  : added cells, cell-ref and cell-set!
    128152; 1.0  : initial import
Note: See TracChangeset for help on using the changeset viewer.