Debian Codegraph @

docsrc/xlisp/xlisp-doc/reference/char-lessp-s.htm

raw
1 <html><head><title>XLISP char&lt;</title>
2
3 <link rel="stylesheet" type="text/css" href="reference.css">
4
5 </head>
6
7 <body>
8
9 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
10 <a href="../manual/contents.htm">Contents</a> |
11 <a href="../tutorials/tutorials.htm">Tutorials</a> |
12 <a href="../examples/examples.htm">Examples</a> |
13 <a href="reference-index.htm">Reference</a>
14
15 <hr>
16
17
18 <h1>char&lt;</h1>
19
20 <hr>
21
22 <p><table cellpadding="0" cellspacing="0" style="margin-left:10px"><tbody>
23 <tr valign="top">
24 <td><nobr>Type:</nobr></td>
25 <td><nobr>&nbsp;&nbsp;-&nbsp;&nbsp;</nobr></td>
26 <td width="100%"><nobr>function (subr)</nobr></td>
27 </tr>
28 <tr valign="top">
29 <td><nobr>Source:</nobr></td>
30 <td><nobr>&nbsp;&nbsp;-&nbsp;&nbsp;</nobr></td>
31 <td width="100%"><nobr>xlstr.c</nobr></td>
32 </tr>
33 </tbody></table></p>
34
35 <h2>Syntax</h2>
36
37 <p><div class="box">
38
39 <dl>
40 <dt>(<b>char&lt;</b> <i>char1 charN</i> ... )</dt>
41 <dd><i>char1</i> - a character expression<br>
42 <i>charN</i> - character expression[s] to compare<br>
43 returns - <a href="t.htm">&nbsp;T&nbsp;</a>
44 if the characters are of monotonically increasing
45 <a href="../misc/ascii-table.htm">ASCII</a> value,
46 <a href="nil.htm">NIL</a> otherwise<br>
47 <b>Note:</b> case is significant with this function</dd>
48 </dl>
49
50 </div></p>
51
52 <h2>Description</h2>
53
54 <p> The 'char&lt;' function tests if all the character arguments are
55 monotonically increasing. <a href="t.htm">&nbsp;T&nbsp;</a> is returned if
56 the arguments are of monotonically increasing
57 <a href="../misc/ascii-table.htm">ASCII</a> value, <a href="nil.htm">NIL</a>
58 otherwise. <nobr>In the</nobr> case of two arguments, this has the effect of
59 testing if 'char1' is less than 'char2'. This test is case sensitive, the
60 character '#\a' is different and of greater
61 <a href="../misc/ascii-table.htm">ASCII</a> value than the <nobr>character
62 '#\A'</nobr>.</p>
63
64 <h2>Examples</h2>
65
66 <pre class="example">
67 (char&lt; #\a #\b) =&gt; T
68 (char&lt; #\b #\a) =&gt; NIL
69 (char&lt; #\a #\b #\c) =&gt; T
70 (char&lt; #\a #\a) =&gt; NIL
71 (char&lt; #\a #\b #\b) =&gt; NIL
72 (char&lt; #\A #\a) =&gt; T
73 (char&lt; #\a #\A) =&gt; NIL
74 </pre>
75
76 <p>See also:</p>
77
78 <ul>
79 <li><nobr>Contents &rarr; <a href="../manual/contents.htm#character-functions">Character Functions</a></nobr></li>
80 </ul>
81
82 <p><nobr>&nbsp;&nbsp;<a href="#top">Back to Top</nobr></a></p>
83
84 <hr>
85
86 <a href="../start.htm">Nyquist / XLISP 2.0</a>&nbsp; -&nbsp;
87 <a href="../manual/contents.htm">Contents</a> |
88 <a href="../tutorials/tutorials.htm">Tutorials</a> |
89 <a href="../examples/examples.htm">Examples</a> |
90 <a href="reference-index.htm">Reference</a>
91
92 </body></html>