mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 15:24:09 +03:00
Merge pull request #1336 from thePsguy/patch-3
{common-lisp}Issue #1157 comment for '-p'
This commit is contained in:
commit
3c4afff4cc
@ -175,7 +175,8 @@ nil ; for false - and the empty list
|
||||
:age 5))
|
||||
*rover* ; => #S(DOG :NAME "rover" :BREED "collie" :AGE 5)
|
||||
|
||||
(dog-p *rover*) ; => t ;; ewww)
|
||||
(dog-p *rover*) ; => true #| -p signifies "predicate". It's used to
|
||||
check if *rover* is an instance of dog. |#
|
||||
(dog-name *rover*) ; => "rover"
|
||||
|
||||
;; Dog-p, make-dog, and dog-name are all created by defstruct!
|
||||
|
Loading…
Reference in New Issue
Block a user