Scala sequences - head, tail, init, last