Changeset 36357 in project


Ignore:
Timestamp:
08/23/18 13:16:49 (4 weeks ago)
Author:
juergen
Message:

bindings 1.1 with prefixed sequence routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/bindings

    r36334 r36357  
    1818example. For this to be possible, sequence equivalents for list-ref,
    1919list-tail and null? have to be implemented, which use a database routine
    20 named seq-db.
     20named bind-seq-db.
    2121
    2222The syntax of the fundamental bind macro is as follows
     
    5050and the checks as well as the fenders are satisfied. If the where
    5151clause doesn't pass, the next pattern is tried in bind-case or a
    52 seq-exception is signalled in bind.
     52bind-seq-exception is signalled in bind.
    5353
    5454This version is a port to chicken-5 from the last version 7.1 of
     
    8282=== Sequence routines
    8383
    84 ==== pseudo-list?
    85 
    86 <procedure>(pseudo-list? xpr)</procedure>
     84==== bind-pseudo-list?
     85
     86<procedure>(bind-pseudo-list? xpr)</procedure>
    8787
    8888always #t
    8989
    90 ==== seq-exception
    91 
    92 <procedure>(seq-exception loc . args)</procedure>
     90==== bind-seq-exception
     91
     92<procedure>(bind-seq-exception loc . args)</procedure>
    9393
    9494generates an exception to be raised
    9595
    96 ==== seq-db
    97 
    98 <procedure>(seq-db)</procedure>
     96==== bind-seq-db
     97
     98<procedure>(bind-seq-db)</procedure>
    9999
    100100shows the sequence database
    101101
    102 <procedure>(seq-db type? ref: ref tail: tail)</procedure>
     102<procedure>(bind-seq-db type? ref: ref tail: tail)</procedure>
    103103
    104104adds a new custom sequence type with predicate type? and keyword
    105105arguments ref: and tail:  naming procedures to be later accessed
    106 via seq-ref and seq-tail respectively.
    107 
    108 ==== seq-ref
    109 
    110 <procedure>(seq-ref seq k)</procedure>
     106via bind-seq-ref and bind-seq-tail respectively.
     107
     108==== bind-seq-ref
     109
     110<procedure>(bind-seq-ref seq k)</procedure>
    111111
    112112sequence analog of list-ref
    113113
    114 ==== seq-tail
    115 
    116 <procedure>(seq-tail seq k)</procedure>
     114==== bind-seq-tail
     115
     116<procedure>(bind-seq-tail seq k)</procedure>
    117117
    118118sequence analog of list-tail
    119119
    120 ==== seq-null?
    121 
    122 <procedure>(seq-null? xpr)</procedure>
     120==== bind-seq-null?
     121
     122<procedure>(bind-seq-null? xpr)</procedure>
    123123
    124124sequence analog of null?
     
    441441== Last update
    442442
    443 Aug 19, 2018
     443Aug 23, 2018
    444444
    445445== Author
     
    479479
    480480== Version History
     481; 1.1 : sequence routines prifixed
    481482; 1.0 : chicken-5 port from chicken-4, version 7.1, with modifications
Note: See TracChangeset for help on using the changeset viewer.