mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Changed function name to match function call
This commit is contained in:
parent
cb2e6b6f99
commit
12e01249b3
@ -83,7 +83,7 @@ True ; => True
|
|||||||
(greet "bilbo") ;=> "hello bilbo"
|
(greet "bilbo") ;=> "hello bilbo"
|
||||||
|
|
||||||
; functions can take optional arguments as well as keyword arguments
|
; functions can take optional arguments as well as keyword arguments
|
||||||
(defn foolist [arg1 &optional [arg2 2]]
|
(defn foolists [arg1 &optional [arg2 2]]
|
||||||
[arg1 arg2])
|
[arg1 arg2])
|
||||||
|
|
||||||
(foolists 3) ;=> [3 2]
|
(foolists 3) ;=> [3 2]
|
||||||
|
Loading…
Reference in New Issue
Block a user