Comp Sci: LISP: how to check if a variable is defined
Self-tutoring about LISP: the tutor mentions how to check if a variable if defined without invoking an error.
Let’s imagine, in LISP, you want to check if x is defined.
(boundp ‘x)
T if it is, NIL if not:)
Source:
Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.
Leave a Reply
You must be logged in to post a comment.