擅长:python、mysql、java
<p>见<a href="http://www.scala-lang.org/api/current/scala/collection/Seq.html" rel="noreferrer">ScalaAPI here</a></p>
<p>所以不是同样的符号便利,但是操作是存在的</p>
<blockquote>
<p>def slice (from: Int, until: Int)
: Seq[A]</p>
<p>Selects an interval of elements.</p>
<p>Selects an interval of elements.</p>
<p>Note: c.slice(from, to) is equivalent
to (but possibly more efficient than)
c.drop(from).take(to - from)</p>
<p>from the index of the first returned element in this sequence. until
the index one past the last returned element in this sequence.</p>
<p>returns</p>
<p>a sequence containing the elements starting at index from and extending
up to (but not including) index until
of this sequence. </p>
<p>definition classes: IterableLike →
TraversableLike</p>
</blockquote>