permutations
方法(或屬性)屬於 scala.collection.AbstractIndexedSeqView
類(class),其相關用法說明如下。
用法:
def permutations: Iterator[View[A]]
迭代不同的排列。
注意:即使應用於視圖或惰性集合,它也會始終強製元素。
返回:
遍曆此序列的不同排列的迭代器。
例子:
-
"abb".permutations = Iterator(abb, bab, bba)
繼承自:
- collection.SeqOps.permutations
源碼:
- Seq.scala
相關用法
- Scala AbstractIndexedSeqView.partitionMap用法及代碼示例
- Scala AbstractIndexedSeqView.collectFirst用法及代碼示例
- Scala AbstractIndexedSeqView.sliding用法及代碼示例
- Scala AbstractIndexedSeqView.addString用法及代碼示例
- Scala AbstractIndexedSeqView.unzip用法及代碼示例
- Scala AbstractIndexedSeqView.tails用法及代碼示例
- Scala AbstractIndexedSeqView.transpose用法及代碼示例
- 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.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.permutations。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。