- bag-delete bag element ...procedure
- bag-delete! bag element ...procedure
- bag-delete-all bag element-listprocedure
- bag-delete-all! bag element-listprocedure
The bag-delete procedure returns a newly allocated bag containing all the values of bag Any element that is not equal to some member of the bag is ignored.
The bag-delete! procedure is the same as bag-delete, except that it is permitted to mutate and return the bag argument rather than allocating a new bag.
The bag-delete-all and bag-delete-all!} procedures are the same as {{bag-delete and bag-delete!, except that they accept a single argument which is a list of elements to be deleted.