RosettaCodeData/Task/Empty-string/Slope/empty-string.slope

9 lines
208 B
Plaintext

(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