summaryrefslogtreecommitdiff
path: root/list-functions.lisp
blob: f379e1960173ad6158c4dba961babacdde037a25 (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
39
40
41
42
43
44
45
46
47
48
49
50
(%defmacro pushq args
  (list* 'setq (car (cdr args)) (car args)))

(%defun first args
  (car (car args)))

(%defun caar args
  (car (cdr (first args))))

(%defun cadr args
  (car (cdr (first args))))

(%defun cdar args
  (car (cdr (first args))))

(%defun cddr args
  (cdr (cdr (first args))))

(%defun caddr args
  (car (cddr (first args))))

(%defun cdddr args
  (cdr (cddr (first args))))

(%defun second args
  (cadr (car args)))

(%defun third args
  (caddr (car args)))

(%defun fourth args
  (car (cdddr (car args))))

(%defun fifth args
  (cadr (cdddr (car args))))

(%defun sixth args
  (caddr (cdddr (car args))))

(%defun seventh args
  (car (cdddr (cdddr (car args)))))

(%defun eigthth args
  (cadr (cdddr (cdddr (car args)))))

(%defun ninth args
  (caddr (cdddr (cdddr (car args)))))

(%defun tenth args
  (car (cdddr (cdddr (cdddr (car args))))))