aboutsummaryrefslogtreecommitdiff
path: root/src/input/farray.input.pamphlet
blob: 94ff27065e7bbb6e53a289a500be0de8fe945774 (plain)
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
\documentclass{article}
\usepackage{axiom}
\begin{document}
\title{\$SPAD/src/input FARRAY.input}
\author{The Axiom Team}
\maketitle
\begin{abstract}
\end{abstract}
\eject
\tableofcontents
\eject
<<*>>=

-- Input generated from FlexibleArrayXmpPage
)clear all

flexibleArray [i for i in 1..6]
f : FARRAY INT := new(6,0)
for i in 1..6 repeat f.i := i; f
physicalLength f
concat!(f,11)
physicalLength f
physicalLength!(f,15)
concat!(f,f)
insert!(22,f,1)
g := f(10..)
insert!(g,f,1)
merge!(sort! f, sort! g)
removeDuplicates! f
select!(i +-> even? i,f)
physicalLength f
shrinkable(false)$FlexibleArray(Integer)
@
\eject
\begin{thebibliography}{99}
\bibitem{1} nothing
\end{thebibliography}
\end{document}