Changeset 40372 in project


Ignore:
Timestamp:
08/21/21 23:13:41 (5 weeks ago)
Author:
Jeremy Steward
Message:

Add description of read syntax & printer for srfi-113

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/srfi-113

    r37311 r40372  
    688688bags with different element comparators.
    689689
     690== Non-standard Extensions
     691
     692As of version 0.15, this egg also provides CHICKEN-specific read and print syntax. You can use it as follows:
     693
     694<enscript highlight="scheme">
     695(define my-set #!set(1 2 3))
     696
     697(set-union #!set(1 2 3) #!set(2 3 4)) ;=> #!set(1 2 3 4)
     698
     699(define my-bag #!bag(1 1 2 2 3 4))
     700
     701#!bag(1 1 2 2 3 4) ;=> #!bag(1 1 2 2 3 4)
     702</enscript>
     703
     704<procedure>(set-sob-read-syntax-comparator comparator)</procedure>
     705
     706Sets the comparator used when using read-syntax to declare a set or bag. Defaults to {{(make-default-comparator)}}.
     707
    690708== Repository
    691709
     
    694712== Version History
    695713
     714; 0.15 : Adds read & printer syntax, as well as {{set-sob-read-syntax-comparator}}
     715; 0.14 : Fixes tests
     716; 0.13 : Adds srfi-113.scm to .meta file (for CHICKEN 4)
     717; 0.12 : Adds .egg file to .meta list (for CHICKEN 4)
    696718; 0.11 : CHICKEN 5 support, with fixed tests
    697719; 0.10 : Preliminary CHICKEN 5 support, with broken tests :(
Note: See TracChangeset for help on using the changeset viewer.