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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
<!--
# VIP @lib/vip/html.l
# 26oct23 Software Lab. Alexander Burger
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>X</title>
<link rel="stylesheet" href="doc.css" type="text/css">
</head>
<body>
<h1>X</h1>
<dl>
<dt><a id="xchg"><code>(xchg 'var 'var ..) -> any</code></a></dt>
<dd>Exchange the values of successive <code>var</code> argument pairs. See also
<code><a href="refS.html#swap">swap</a></code> and <code><a
href="refS.html#set">set</a></code>.
<pre>
: (setq A 1 B 2 C '(a b c))
-> (a b c)
: (xchg 'A C 'B (cdr C))
-> 2
: A
-> a
: B
-> b
: C
-> (1 2 c)
</pre></dd>
<dt><a id="xor"><code>(xor 'any 'any) -> flg</code></a></dt>
<dd>Returns T if exactly one of the arguments evaluates to non-<code>NIL</code>.
<pre>
: (xor T NIL)
-> T
: (xor T T)
-> NIL
</pre></dd>
<dt><a id="x%7C"><code>(x| 'num ..) -> num</code></a></dt>
<dd>Returns the bitwise <code>XOR</code> of all <code>num</code> arguments. When
one of the arguments evaluates to <code>NIL</code>, it is returned immediately.
See also <code><a href="ref_.html#&">&</a></code>, <code><a
href="ref_.html#%7C">|</a></code> and <code><a
href="refB.html#bit?">bit?</a></code>.
<pre>
: (x| 2 7)
-> 5
: (x| 2 7 1)
-> 4
</pre></dd>
</dl>
</body>
</html>
|