Search and remove an element from an object. If the element is not found, ignore the attempt.
discard(.x, ...)
ref_discard(.x, ...)
# S3 method for Container
discard(.x, ...)
# S3 method for Container
ref_discard(.x, ...)
any R
object.
elements to be discarded.
For Container
, an object of class Container
(or one of the
respective derived classes).