-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpart-I-packages.lisp
75 lines (63 loc) · 1.93 KB
/
part-I-packages.lisp
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
;;; -*- Mode: LISP; Syntax: COMMON-LISP; Package: CL-USER; Base: 10 -*-
;;;; Copyright (c) 2014, 2015 Zlatozar Zhelyazkov
;;;; part-I-packages.lisp: PART I "Introduction to Common Lisp"
(in-package :cl-user)
;;; ____________________________________________________________________________
(defpackage #:ch1
(:documentation "Chapter 1. Introduction to Lisp")
(:use #:common-lisp
#:inspect
#:tutor)
(:import-from :paip-aux
#:mappend))
(defpackage #:ch1-exercises
(:documentation "Selected exercises form Chapter 1")
(:use #:common-lisp
#:pcl-test
#:ch1)
(:export #:power
#:test-power
#:count-atoms
#:test-count-atoms
#:count-all-atoms
#:count-anywhere
#:test-count-anywhere
#:dot-product
#:test-dot-product))
;;; ____________________________________________________________________________
(defpackage #:ch2
(:documentation "Chapter 2. A Simple Lisp Program")
(:use #:common-lisp
#:inspect
#:tutor)
(:import-from :paip-aux
#:mappend))
(defpackage #:ch2-exercises
(:documentation "Selected exercises form Chapter 2")
(:use #:common-lisp
#:pcl-test)
(:import-from :paip-aux
#:mappend)
(:export #:cross-product
#:test-cross-product
#:combine-all
#:test-combine-all))
;;; ____________________________________________________________________________
(defpackage #:ch3
(:documentation "Chapter 3. Overview of Lisp")
(:use #:common-lisp
#:inspect
#:tutor)
(:export #:while))
(defpackage #:ch3-exercises
(:documentation "Selected exercises form Chapter 3")
(:use #:common-lisp
#:pcl-test
#:ch3)
(:import-from :paip-aux
#:declare-ignore
#:find-anywhere)
(:export #:dprint
#:questions
#:length-r
#:test-length-r))