| Syntax to Append single and multiple data element in list in Scala?
We can append single and multiple data element in list in scala. Below is the syntax to add single value to the list. And we should use ":+" to append data in list
And if we want to multiple values to the list we use "++" to append data in the list.
| | |