com.autonomousapps.internal.utils.sequences.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-analysis-gradle-plugin Show documentation
Show all versions of dependency-analysis-gradle-plugin Show documentation
Analyzes dependency usage in Android and JVM projects
package com.autonomousapps.internal.utils
internal fun Sequence.allItems(): List =
flatMap { matchResult ->
val groupValues = matchResult.groupValues
// Ignore the 0th element, as it is the entire match
if (groupValues.isNotEmpty()) groupValues.subList(1, groupValues.size).asSequence()
else emptySequence()
}.toList()