Deprecations cleanup: sequence -> asSequence
This commit is contained in:
@@ -183,7 +183,7 @@ private fun RegExp.findNext(input: String, from: Int): MatchResult? {
|
||||
override fun contains(o: Any?): Boolean = this.any { it == o }
|
||||
override fun containsAll(c: Collection<Any?>): Boolean = c.all({contains(it)})
|
||||
|
||||
override fun iterator(): Iterator<MatchGroup?> = indices.sequence().map { this[it] }.iterator()
|
||||
override fun iterator(): Iterator<MatchGroup?> = indices.asSequence().map { this[it] }.iterator()
|
||||
|
||||
override fun get(index: Int): MatchGroup? = match[index]?.let { MatchGroup(it) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user