Changeset 39860 in project


Ignore:
Timestamp:
04/06/21 00:46:11 (6 weeks ago)
Author:
Kon Lovett
Message:

rel 0.0.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/semantic-version

    r39856 r39860  
    3535=== make-version
    3636
    37 <procedure>(make-version ELM...) --> version</procedure>
     37<procedure>(make-version VER CNT ELM [CHR]) --> version</procedure>
     38
     39Returns new version with CNT elements, ELM, and punctuation CHR.
     40
     41; VER : {{version}} ; version to extend.
     42; CNT : {{integer}} ; element count.
     43; ELM : {{(or number string symbol)}} ; version element.
     44; CHR : {{char}} ; version punctuation, default is as above.
     45
     46=== version
     47
     48<procedure>(version ELM...) --> version</procedure>
    3849
    3950Returns a new version with the specified elements, ELM..., and the default
     
    7586; VER : {{version}} ; version to query.
    7687
    77 === version-parts
    78 
    79 <procedure>(version-parts VER) --> list</procedure>
     88=== version-elements
     89
     90<procedure>(version-elements VER) --> (list-of (or number string))</procedure>
    8091
    8192Returns list of version elements.
     
    8394; VER : {{version}} ; version to query.
    8495
    85 === version-puncs
    86 
    87 <procedure>(version-puncs VER) --> list</procedure>
     96=== version-separators
     97
     98<procedure>(version-separators VER) --> (list-of char)</procedure>
    8899
    89100Returns list of separator characters (punctuation).
     
    302313;=> #t
    303314; but, assuming baseline `version-punctuation'
    304 (string=? "a.1.b" (version->string (make-version 'a 1 'b)))
     315(string=? "a.1.b" (version->string (version 'a 1 'b)))
    305316;=> #t
    306317
    307 (define ver1 (make-version 'a 1 'b 2))
     318(define ver1 (version 'a 1 'b 2))
    308319((o print version->string) ver1)
    309320;=> "a.1.b.2"
     
    334345== Version history
    335346
     347; 0.0.2 : Use record, {{make-version}} & {{version}} follow convention, rename accessors.
    336348; 0.0.1 : Release.
    337349
Note: See TracChangeset for help on using the changeset viewer.