I got the letters to turn upside down. p
to d
What I can't seem to do is get a string of words to turn upside down. Like house
upside down to ǝsnoɥ
. any help would be appreciated. I am just about done. I am using beginning student with list abbreviations.
#;(first (first l2))
#;(first (rest l2))
#;(first (rest (first l2)))
(define (helper character list)
(cond [(string=? character (first (first list))) (first (rest (first list)))]
[else (helper character (rest list))]))
(check-expect (helper "p" table-1) "d")
(check-expect (helper "t" table-1) "ʇ")
;;_______________________________________________________________________________
(define (upside-down string)
(upside-down "cat")