Scala Seq class: methods, examples, and syntax
By Alvin Alexander. Last updated: July 15 2019
This page contains a large collection of examples of how to use the methods on the Scala Seq class.
Important note about Seq, IndexedSeq, and LinearSeq
As an important note, I use Seq
in the following examples to keep things simple, but in your code you should be more precise and use IndexedSeq
or LinearSeq
where appropriate. As the Seq
class Scaladoc states: