How to replace an item by another in a list in DrScheme when given paramters are two items and a list?
Use map with a function which returns the replacement item when its argument is equal to the item you want to replace and the argument otherwise.
map