how to get first element of a line in scala code example Example: scala get the first element of a seq Seq("1", "two", "3").head