RosettaCodeData/Task/Empty-string/Common-Lisp/empty-string.lisp
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

4 lines
275 B
Common Lisp

(defparameter *s* "") ;; Binds dynamic variable *S* to the empty string ""
(let ((s "")) ;; Binds the lexical variable S to the empty string ""
(= (length s) 0) ;; Check if the string is empty
(> (length s) 0)) ;; Check if length of string is over 0 (that is: non-empty)