Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (requires 'dash)
- (defun atomicp (x)
- "Determine if X is a data type that contains a single value."
- (not (compoundp x)))
- (defun compoundp (x)
- "Determine if X is a data type that contains multiple values."
- (funcall
- (-orfn #'consp #'arrayp #'hash-table-p #'recordp)
- x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement