Question: Write a Clojure function, called rem Elem, which returns a new list with all occurrences of the specified object removed from the list. Test
Write a Clojure function, called rem Elem, which returns a new list with all occurrences of the specified object removed from the list. Test your program using the function calls defined below. Source file name: HW5_3.clj (20 points) (println (remElem ( a b c d b f) 'b)) (println (rem Elem '(a a b a) 'a)) (println (remElem (a a a a) 'a)) (println (remElem (a c d e f g) 'h)) Output: (acdf) (b) () (acdefg)
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
Below is the Clojure function remElem and the corresponding test cases clojure defn remElem lst elem ... View full answer
Get step-by-step solutions from verified subject matter experts
