tails
方法(或屬性)屬於 scala.collection.AbstractIndexedSeqView
類(class),其相關用法說明如下。
用法:
def tails: Iterator[View[A]]
迭代這個可迭代集合的尾部。第一個值將是這個可迭代集合,最後一個值將是一個空的可迭代集合,中間值是 tail
連續應用的結果。
返回:
此可迭代集合的所有尾部的迭代器
例子:
-
List(1,2,3).tails = Iterator(List(1,2,3), List(2,3), List(3), Nil)
繼承自:
- collection.IterableOps.tails
源碼:
- Iterable.scala
相關用法
- Scala AbstractIndexedSeqView.transpose用法及代碼示例
- Scala AbstractIndexedSeqView.collectFirst用法及代碼示例
- Scala AbstractIndexedSeqView.partitionMap用法及代碼示例
- Scala AbstractIndexedSeqView.sliding用法及代碼示例
- Scala AbstractIndexedSeqView.addString用法及代碼示例
- Scala AbstractIndexedSeqView.unzip用法及代碼示例
- Scala AbstractIndexedSeqView.mkString用法及代碼示例
- Scala AbstractIndexedSeqView.sortBy用法及代碼示例
- Scala AbstractIndexedSeqView.sizeIs用法及代碼示例
- Scala AbstractIndexedSeqView.groupBy用法及代碼示例
- Scala AbstractIndexedSeqView.lengthIs用法及代碼示例
- Scala AbstractIndexedSeqView.combinations用法及代碼示例
- Scala AbstractIndexedSeqView.inits用法及代碼示例
- Scala AbstractIndexedSeqView.lazyZip用法及代碼示例
- Scala AbstractIndexedSeqView.unzip3用法及代碼示例
- Scala AbstractIndexedSeqView.sortWith用法及代碼示例
- Scala AbstractIndexedSeqView.permutations用法及代碼示例
- Scala AbstractIndexedSeqView.scanRight用法及代碼示例
- Scala AbstractIndexedSeqView.groupMapReduce用法及代碼示例
- Scala AbstractIndexedSeqView.groupMap用法及代碼示例
- Scala AbstractIterator.sliding用法及代碼示例
- Scala AbstractIterable.partitionMap用法及代碼示例
- Scala AbstractIterable.inits用法及代碼示例
- Scala AbstractIterable.groupMap用法及代碼示例
- Scala AbstractIterable.sizeIs用法及代碼示例
注:本文由純淨天空篩選整理自scala-lang.org大神的英文原創作品 AbstractIndexedSeqView.tails。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。