Sha256: d563416b5e1ca5e5b4a04bd6ed7c7171fa13f74915cf194489b0994f0dc6bbe0
Contents?: true
Size: 232 Bytes
Versions: 396
Compression:
Stored size: 232 Bytes
Contents
object Series { fun Char.toDigitValue() = this.toInt() - '0'.toInt() fun slices(n: Int, s: String): List<List<Int>> = s.dropLast(n - 1).mapIndexed { index, c -> s.subSequence(index, index + n).map { it.toDigitValue() } } }
Version data entries
396 entries across 396 versions & 1 rubygems