File: refX.html

package info (click to toggle)
picolisp 3.1.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,100 kB
  • sloc: ansic: 14,205; lisp: 795; makefile: 290; sh: 13
file content (57 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
<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 name="xchg"><code>(xchg 'var 'var ..) -> any</code></a>
<dd>Exchange the values of successive <code>var</code> argument pairs.

<pre><code>
: (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)
</code></pre>

<dt><a name="xor"><code>(xor 'any 'any) -> flg</code></a>
<dd>Returns T if exactly one of the arguments evaluates to non-<code>NIL</code>.

<pre><code>
: (xor T NIL)
-> T
: (xor T T)
-> NIL
</code></pre>

<dt><a name="x|"><code>(x| 'num ..) -> num</code></a>
<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#|">|</a></code> and <code><a
href="refB.html#bit?">bit?</a></code>.

<pre><code>
: (x| 2 7)
-> 5
: (x| 2 7 1)
-> 4
</code></pre>

</dl>

</body>
</html>