I\'m a beginner and I\'ve always read that it\'s bad to repeat code. However, it seems that in order to not do so, you would have to have extra method calls usually. Let\'s
Keep the clear() method when it helps readability. Having unmaintainable code is more expensive.
clear()