#reader(lib "htdp-beginner-reader.ss" "lang")((modname acronym-list-str) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
(check-expect (acronym (cons "United" (cons "States" (cons "of" (cons "America" empty)))))
"USA")
(check-expect (acronym empty) "")
(check-expect (acronym (cons "Compact" (cons "Disk" empty)))
"CD")
(define (acronym a-los)
(cond [(empty? a-los) ""]
[(cons? a-los) (cond
[(string-upper-case? (string-ith (first a-los) 0))
(string-append (string-ith (first a-los) 0)
(acronym (rest a-los)))]
[else (acronym (rest a-los))])]))
(require racket/base)
(require (planet nah22/racketui:1:1))
(web-launch
"Acronym Builder"
(function "Produces an acronym of the capitalized words in the given list."
(acronym ["Words" (listof+ ["Word" string+])] -> ["The acronym" string])))