exercises and notes from "Gentle introduction"

This commit is contained in:
efim
2022-07-24 11:52:07 +00:00
commit 067aebaf81
21 changed files with 1597 additions and 0 deletions

13
trace-and-dtrace.lisp Normal file
View File

@@ -0,0 +1,13 @@
(defun half (n) (* n 0.5))
(defun average (x y)
(half (+ x y)))
(trace) ; returns list of traced functions
(trace half average)
(average 7 5) ; tree of calls printed into repl
(untrace half)
(untrace) ; untraces all