chickadee » srfi-113 » bag-replace

bag-replace bag elementprocedure

The bag-replace procedure returns a newly allocated bag that uses the same comparator as bag and contains all the values of bag. If there is no such element in bag, then bag is returned unchanged.