This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 11.5, “How to Merge (Concatenate) Lists in Scala”
You want to merge/concatenate the contents of two lists.
Merge two lists using the
::: methods. Given these two lists: