Logo

Programming-Idioms

History of Idiom 110 > diff from v30 to v31

Edit summary for version 31 by foobar:
New Lisp implementation by user [foobar]

Version 30

2019-09-26, 13:58:37

Version 31

2019-09-26, 16:31:48

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Idiom #110 Check if string is blank

Set boolean blank to true if string s is empty, or null, or contains only whitespace ; false otherwise.

Code
(setf blank (not (find #\space s :test-not #'eql)))