Question: Implement the following functions in Scheme using foldl, filter and map. DO NOT use recursive definition for this problem. d) (5pt) Define a function dup,
Implement the following functions in Scheme using foldl, filter and map. DO NOT use recursive definition for this problem.

d) (5pt) Define a function dup, which takes a list and duplicates every element in that list. For example, (dup ' ()) ; returns '() (dup ' ("abc" \#t 7 7)) ; returns '("abc" "abc" \#t \#t 7 7 7 7)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
