mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
`require' gets all bindings, not just functions.
Also, explain the ' use.
This commit is contained in:
parent
c11ec1f137
commit
8f295f4e68
@ -436,8 +436,8 @@ vec ; => #(1 2 3 4)
|
||||
(printf fmt (make-string n ch))
|
||||
(newline)))
|
||||
|
||||
;; Use `require' to import all functions from the module
|
||||
(require 'cake)
|
||||
;; Use `require' to get all `provide'd names from a module
|
||||
(require 'cake) ; the ' is for a local submodule
|
||||
(print-cake 3)
|
||||
; (show "~a" 1 #\A) ; => error, `show' was not exported
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user