This file is indexed.

/usr/share/doc/racket/version/index.html is in racket-doc 6.7-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Version: Racket Version Checking</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="" class="tocviewselflink" data-pltdoc="x">Version:<span class="mywbr"> &nbsp;</span> Racket Version Checking</a></td></tr></table></div><div class="tocviewsublistonly" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="#%28part._.Installed_.Patch_.Level%29" class="tocviewlink" data-pltdoc="x">Installed Patch Level</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="#%28part._.Checking_.Available_.Versions%29" class="tocviewlink" data-pltdoc="x">Checking Available Versions</a></td></tr><tr><td align="right">3&nbsp;</td><td><a href="#%28part._.Version_.Utilities%29" class="tocviewlink" data-pltdoc="x">Version Utilities</a></td></tr></table></div></div></div><div class="tocsub"><table class="tocsublist" cellspacing="0"><tr><td><span class="tocsublinknumber"></span><a href="#%28part._top%29" class="tocsubseclink" data-pltdoc="x">Version:<span class="mywbr"> &nbsp;</span> Racket Version Checking</a></td></tr><tr><td><span class="tocsublinknumber">1<tt>&nbsp;</tt></span><a href="#%28part._.Installed_.Patch_.Level%29" class="tocsubseclink" data-pltdoc="x">Installed Patch Level</a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Fpatchlevel..rkt%29._patchlevel%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">patchlevel</span></span></a></td></tr><tr><td><span class="tocsublinknumber">2<tt>&nbsp;</tt></span><a href="#%28part._.Checking_.Available_.Versions%29" class="tocsubseclink" data-pltdoc="x">Checking Available Versions</a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Fcheck..rkt%29._check-version%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">check-<wbr></wbr>version</span></span></a></td></tr><tr><td><span class="tocsublinknumber">3<tt>&nbsp;</tt></span><a href="#%28part._.Version_.Utilities%29" class="tocsubseclink" data-pltdoc="x">Version Utilities</a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">valid-<wbr></wbr>version?</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version-~3elist%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">version-<wbr></wbr>&gt;list</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version~3c~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">version&lt;?</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version~3c~3d~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">version&lt;=?</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Futils..rkt%29._alpha-version~3f%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">alpha-<wbr></wbr>version?</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version-~3einteger%29%29" class="tocsubnonseclink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">version-<wbr></wbr>&gt;integer</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="versionbox"><span class="version">6.7</span></div><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<span class="nonavigation">&larr; prev</span>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">up</a>&nbsp;&nbsp;<span class="nonavigation">next &rarr;</span></span>&nbsp;</div><h2 x-source-module="(lib &quot;version/version.scrbl&quot;)" x-source-pkg="racket-doc" x-part-tag="&quot;top&quot;"><a name="(part._top)"></a><a name="(part._.Version__.Racket_.Version_.Checking)"></a>Version: Racket Version Checking</h2><p>The <span class="stt">"version"</span> collection contains several version-related
pieces that are used by Racket.  See also <span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=runtime.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._version%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">version</a></span> from
<a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=index.html&amp;version=6.7" class="RktModLink Sq" data-pltdoc="x"><span class="RktSym">racket/base</span></a>.</p><h3 x-source-module="(lib &quot;version/version.scrbl&quot;)" x-source-pkg="racket-doc" x-part-tag="&quot;Installed_Patch_Level&quot;">1<tt>&nbsp;</tt><a name="(part._.Installed_.Patch_.Level)"></a><a name="(mod-path._version/patchlevel)"></a>Installed Patch Level</h3><p><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._version%2Fpatchlevel%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">version/patchlevel</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller">&nbsp;package:</span> <span class="stt">base</span></span></td></tr></table></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>value</p></div></div><p class="RForeground"><a name="(def._((lib._version/patchlevel..rkt)._patchlevel))"></a><span title="Provided from: version/patchlevel | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Fpatchlevel..rkt%29._patchlevel%29%29" class="RktValDef RktValLink" data-pltdoc="x">patchlevel</a></span></span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._exact-nonnegative-integer%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">exact-nonnegative-integer?</a></span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Indicates the current installed patch level, which is normally zero,
but may be updated by patches to DrRacket.</div></p><h3 x-source-module="(lib &quot;version/version.scrbl&quot;)" x-source-pkg="racket-doc" x-part-tag="&quot;Checking_Available_Versions&quot;">2<tt>&nbsp;</tt><a name="(part._.Checking_.Available_.Versions)"></a><a name="(mod-path._version/check)"></a>Checking Available Versions</h3><p><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._version%2Fcheck%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">version/check</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller">&nbsp;package:</span> <span class="stt">base</span></span></td></tr></table></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._version/check..rkt)._check-version))"></a><span title="Provided from: version/check | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Fcheck..rkt%29._check-version%29%29" class="RktValDef RktValLink" data-pltdoc="x">check-version</a></span></span><span class="RktPn"></span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=symbols.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._symbol%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">symbol?</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">list?</a></span><span class="RktPn">)</span></p></blockquote></td></tr></table></blockquote></div><div class="SIntrapara">Checks the currently available version on the PLT website
(<a href="http://download.racket-lang.org"><span class="stt">http://download.racket-lang.org</span></a>) and returns a value that
indicates the current state of the current installation:</div></p><ul><li><p><span class="RktVal">`</span><span class="RktVal">ok</span> &#8212;<wbr></wbr> You&rsquo;re fine.</p></li><li><p><span class="RktVal">`</span><span class="RktVal">(</span><span class="RktVal">ok-but</span><span class="stt"> </span><span class="RktRdr">,</span><span class="RktVar">version</span><span class="RktVal">)</span> &#8212;<wbr></wbr> You have a fine stable
version, but note that there is a newer alpha version available
numbered <span class="RktVar">version</span>.</p></li><li><p><span class="RktVal">`</span><span class="RktVal">(</span><span class="RktVal">newer</span><span class="stt"> </span><span class="RktRdr">,</span><span class="RktVar">version</span><span class="RktVal">)</span> &#8212;<wbr></wbr> You have an old
version.  Please upgrade to <span class="RktVar">version</span>.</p></li><li><p><span class="RktVal">`</span><span class="RktVal">(</span><span class="RktVal">newer</span><span class="stt"> </span><span class="RktRdr">,</span><span class="RktVar">version</span><span class="stt"> </span><span class="RktRdr">,</span><span class="RktVar">alpha</span><span class="RktVal">)</span> &#8212;<wbr></wbr> You have an
old-but-stable version, please upgrade to <span class="RktVar">version</span>; you
may consider also the newer alpha version numbered
<span class="RktVar">alpha</span>.</p></li><li><p><span class="RktVal">`</span><span class="RktVal">(</span><span class="RktVal">error</span><span class="stt"> </span><span class="RktRdr">,</span><span class="RktVar">message</span><span class="RktVal">)</span> &#8212;<wbr></wbr> An error occurred, and
<span class="RktVar">message</span> is a string that indicates the error.</p></li><li><p><span class="RktVal">`</span><span class="RktVal">(</span><span class="RktVal">error</span><span class="stt"> </span><span class="RktRdr">,</span><span class="RktVar">message</span><span class="stt"> </span><span class="RktRdr">,</span><span class="RktVar">additional-info</span><span class="RktVal">)</span> &#8212;<wbr></wbr> An error
occurred; <span class="RktVar">message</span> is a string that indicates the
error, and <span class="RktVar">additional-info</span> is a string containing a
system error.  The <span class="RktVar">additional-info</span> content is always
parenthesizes, so <span class="RktSym">message</span> is a short error and
<span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string-append%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">string-append</a></span><span class="stt"> </span><span class="RktSym">message</span><span class="stt"> </span><span class="RktVal">" "</span><span class="stt"> </span><span class="RktSym">additional-info</span><span class="RktPn">)</span> is a
verbose one.</p></li></ul><h3 x-source-module="(lib &quot;version/version.scrbl&quot;)" x-source-pkg="racket-doc" x-part-tag="&quot;Version_Utilities&quot;">3<tt>&nbsp;</tt><a name="(part._.Version_.Utilities)"></a><a name="(mod-path._version/utils)"></a>Version Utilities</h3><p><div class="SIntrapara"><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=require.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._require%2529%2529&amp;version=6.7" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="#%28mod-path._version%2Futils%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">version/utils</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller">&nbsp;package:</span> <span class="stt">base</span></span></td></tr></table></div><div class="SIntrapara">The <a href="#%28mod-path._version%2Futils%29" class="RktModLink" data-pltdoc="x"><span class="RktSym">version/utils</span></a> library provides a few of convenient
utilities for dealing with version strings.  Unless explicitly noted,
these functions do not handle legacy versions of Racket.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._version/utils..rkt)._valid-version~3f))"></a><span title="Provided from: version/utils | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">valid-version?</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">v</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">v</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if <span class="RktVar">v</span> is a valid Racket version
string, <span class="RktVal">#f</span> otherwise.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._version/utils..rkt)._version-~3elist))"></a><span title="Provided from: version/utils | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version-~3elist%29%29" class="RktValDef RktValLink" data-pltdoc="x">version-&gt;list</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._list%252Fc%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">list/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">integer?</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">integer?</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">integer?</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">integer?</a></span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="RktValLink" data-pltdoc="x">valid-version?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns a list of four numbers that the given version string
represent.  <span class="RktVar">str</span> is assumed to be a valid version.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._version/utils..rkt)._version~3c~3f))"></a><span title="Provided from: version/utils | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version~3c~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">version&lt;?</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">str1</span><span class="hspace">&nbsp;</span><span class="RktVar">str2</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str1</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="RktValLink" data-pltdoc="x">valid-version?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str2</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="RktValLink" data-pltdoc="x">valid-version?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if <span class="RktVar">str1</span> represents a version that is
strictly smaller than <span class="RktVar">str2</span>, <span class="RktVal">#f</span> otherwise.
<span class="RktVar">str1</span> and <span class="RktVar">str2</span> are assumed to be valid versions.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._version/utils..rkt)._version~3c~3d~3f))"></a><span title="Provided from: version/utils | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version~3c~3d~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">version&lt;=?</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">str1</span><span class="hspace">&nbsp;</span><span class="RktVar">str2</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str1</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="RktValLink" data-pltdoc="x">valid-version?</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str2</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="RktValLink" data-pltdoc="x">valid-version?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if <span class="RktVar">str1</span> represents a version that is
smaller than or equal to <span class="RktVar">str2</span>, <span class="RktVal">#f</span> otherwise.
<span class="RktVar">str1</span> and <span class="RktVar">str2</span> are assumed to be valid versions.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._version/utils..rkt)._alpha-version~3f))"></a><span title="Provided from: version/utils | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._alpha-version~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">alpha-version?</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._valid-version~3f%29%29" class="RktValLink" data-pltdoc="x">valid-version?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Returns <span class="RktVal">#t</span> if the version that <span class="RktVar">str</span> represents is an
alpha version.  <span class="RktVar">str</span> is assumed to be a valid version.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._version/utils..rkt)._version-~3einteger))"></a><span title="Provided from: version/utils | Package: base"><span class="RktSym"><a href="#%28def._%28%28lib._version%2Futils..rkt%29._version-~3einteger%29%29" class="RktValDef RktValLink" data-pltdoc="x">version-&gt;integer</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">str</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._or%252Fc%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">or/c</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=number-types.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._integer%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">integer?</a></span><span class="hspace">&nbsp;</span><span class="RktVal">#f</span><span class="RktPn">)</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">str</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="https://download.racket-lang.org/docs/6.7/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=6.7" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Converts the version string into an integer.  For version
<span class="RktVal">"X.YY.ZZZ.WWW"</span>, the result will be <span class="RktVal">XYYZZZWWW</span>.
This function works also for legacy Racket versions, by
translating <span class="RktVal">"XYY.ZZZ"</span> to <span class="RktVal">XYYZZZ000</span>.  The
resulting integer can thefore be used to conveniently compare any two
(valid) version strings.  If the version string is invalid the
resulting value is <span class="RktVal">#f</span>.</div></p><p>Note that this is the only function that deals with legacy version
strings.</p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.7&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<span class="nonavigation">&larr; prev</span>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.7&quot;);">up</a>&nbsp;&nbsp;<span class="nonavigation">next &rarr;</span></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>