Hw08 - CS61A of UCB(2021-Fall)
Q1: My Filter
Write a procedure
my-filter
, which takes a predicatefunc
and a listlst
, and returns a new list containing only elements of the list that satisfy the predicate. The output should contain the elements in the same order that they appeared in the original list.Note: Make sure that you are not just calling the built-in
filter
function in Scheme - we are asking you to re-implement this!