spacepaste

  1.  
  2. Create a function filter-prefix that consumes los a (listof Str)and prfx, a Str
  3. and produces a new (listof Str) with all words that begin with prfx removed.
  4. This question should be approached in a case insensitive manner, meaning that “PrEfIx” should
  5. be treated the same as “prefix.” You should create a helper function to ensure the correct
  6. answer. You are not allowed to use the built-in string-downcase or string-upcase or
  7. string-ci=? for this question. You may use built-in list functions, however, including
  8. string->list.
  9. Example:
  10. (filter-prefix (cons “apple” (cons “b” (cons “banana” (cons “BAnana”
  11. (cons “bAnAna” (cons “BaCkWaRdS” (cons “definite” empty))))))) “bA”)
  12. =>
  13. (cons “apple” (cons “b” (cons “definite” empty)))
  14. CS115 Assignment 5 Fall 2018
  15. Due: October 24 at 10:00 a.m. (No Late Submissions)
  16. (filter-prefix (cons “apple” (cons “b” empty)) “”) => (cons “apple”
  17. (cons “b” empty))
  18.