Sliced Vector out of the Scala collections library

I've never seen such intertwined code...