While appending elements to the end of a List is not common practice, it is still allowed and can be done using the :+ method. Let’s add another fruit to our fruitList.
Like Lists, you can append elements to a Vector using the :+ method.
Let’s add more patterns to patternVector.