exercises and notes from "Gentle introduction"
This commit is contained in:
16
packages.lisp
Normal file
16
packages.lisp
Normal file
@@ -0,0 +1,16 @@
|
||||
;; https://www.tutorialspoint.com/lisp/lisp_packages.htm
|
||||
;;
|
||||
;; how do I check in which package I'm by default / right now?
|
||||
;; it's stored in variable
|
||||
;;
|
||||
;; (in-package "COMMON-LISP-USER") => #<PACKAGE "COMMON-LISP-USER">
|
||||
;; (package-name *package*) => "COMMON-LISP-USER"
|
||||
;;
|
||||
;; how did I find it? I called sly-documentation-lookup (C-c C-d C-h)
|
||||
;; and searched for package, and http://www.lispworks.com/documentation/HyperSpec/Body/f_pkg_na.htm
|
||||
;; had examples!
|
||||
|
||||
*package*
|
||||
(package-name *package*)
|
||||
|
||||
;; yay!
|
||||
Reference in New Issue
Block a user