8 lines
208 B
Text
8 lines
208 B
Text
(define test-string-1 "")
|
|
(define test-string-2 "Not empty")
|
|
|
|
(define empty-string? (lambda (x)
|
|
(and (string? x) (zero? (length x)))))
|
|
|
|
(empty-string? test-string-1) ; #t
|
|
(empty-string? test-string-2) ; #f
|