RosettaCodeData/Task/Empty-string/Slope/empty-string.slope
2023-07-01 13:44:08 -04:00

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