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
65
66
67
68
69
70
71
72
73
74
75
|
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input LIST.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=
-- Input generated from ListXmpPage
)clear all
-- Input generated from ugxListCreatePage
)clear all
[2, 4, 5, 6]
[1]
list(1)
append([1,2,3],[5,6,7])
cons(10,[9,8,7])
-- Input generated from ugxListAccessPage
)clear all
empty? [x+1]
([] = nil)@Boolean
k := [4,3,7,3,8,5,9,2]
first k
k.first
k.1
k(1)
n := #k
last k
k.last
k.(#k)
-- Input generated from ugxListChangePage
)clear all
k := [4,3,7,3,8,5,9,2]
k.1 := 999
k
k := [1,2]
m := cons(0,k)
m.2 := 99
m
k
-- Input generated from ugxListOtherPage
)clear all
k := [1,2,3]
rest k
removeDuplicates [4,3,4,3,5,3,4]
reverse [1,2,3,4,5,6]
member?(1/2,[3/4,5/6,1/2])
member?(1/12,[3/4,5/6,1/2])
-- Input generated from ugxListDotPage
)clear all
[1..3,10,20..23]
expand [1..3,10,20..23]
expand [1..]
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}
|