`init` is the API method to do `tokens.take(tokens.size-1)`.

Also, using a `Tuple2` to initialize 2 values like that is really inefficient. The compiler generates a bunch of unnecessary bytecode in this case (pattern matching, cast, ...). You should have a look at the generated bytecode, it is quite interesting. It is better to split the assignments.