Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
6
Task/Empty-string/Emacs-Lisp/empty-string-1.el
Normal file
6
Task/Empty-string/Emacs-Lisp/empty-string-1.el
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(setq str "") ;; empty string literal
|
||||
|
||||
(if (= 0 (length str))
|
||||
(message "string is empty"))
|
||||
(if (/= 0 (length str))
|
||||
(message "string is not empty"))
|
||||
5
Task/Empty-string/Emacs-Lisp/empty-string-2.el
Normal file
5
Task/Empty-string/Emacs-Lisp/empty-string-2.el
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(defvar str "" "An empty string")
|
||||
|
||||
(if (length= str 0)
|
||||
(message "string is empty")
|
||||
(message "string is not empty"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue