~ chicken-core (master) /manual/Module (chicken version)


 1[[tags: manual]]
 2[[toc:]]
 3
 4== Module (chicken version)
 5
 6This module provides the {{version>=?}} procedure for version comparison.
 7
 8=== version>=?
 9
10<procedure>(version>=? v1 v2)</procedure>
11
12Return {{#t}} if {{v1}} is greater than or equal to {{v2}},
13where both arguments are assumed to encode version numbers.
14The values can be of any type and will be converted to strings
15(using {{->string}}) if necessary. The comparison accepts
16separators like {{"."}}, {{"-"}}, etc. and compares sub-elements
17numerically, if possible.
18
19---
20Previous: [[Module (chicken type)]]
21
22Next: [[Module srfi-4]]
Trap