GraphMine

graphmine-util / io.github.sof3.graphmine.util / kotlin.collections.List

Extensions for kotlin.collections.List

get operator fun <T> List<T>.get(start: Int, end: Int): List<T>
Syntactic sugar for CharSequence.substring so that it looks like list[start:end] in Python
hasOffset fun List<*>.hasOffset(offset: Int): Boolean
A more intuitive way of checking if an offset is in bounds of a list