$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #191

Fill the blank

# remove if present, ignore if not
tags.____("old")

Answer: discard (also accepted: discard, discard())

discard() never raises, unlike remove() on a missing member.
Play Problem Solving ▸