CS 5010: Guided Practice 4.1
Consider the following data definition:
;; A StringList is one of
;; -- empty
;; -- (cons String StringList)
Which of the following expressions has a value that is a StringList ?
-
(cons "abc" empty) -
(cons "bcd") -
(cons "cde" (cons "ef" empty)) -
(cons "3" (cons "4" empty)) -
(cons 3 (cons 4 empty))