Sha256: 1e0b0874f219ab30ba0fcf6532ad2a0622ac845960c62124e3403b6fd76c53ce

Contents?: true

Size: 126 Bytes

Versions: 396

Compression:

Stored size: 126 Bytes

Contents

object Series {
  def slices(n: Int, s: String): Seq[Seq[Int]] =
    s.sliding(n).map(seq => seq.map(c => c.asDigit)).toSeq
}

Version data entries

396 entries across 396 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/scala/exercises/series/example.scala
trackler-2.2.1.138 tracks/scala/exercises/series/example.scala
trackler-2.2.1.137 tracks/scala/exercises/series/example.scala
trackler-2.2.1.136 tracks/scala/exercises/series/example.scala
trackler-2.2.1.135 tracks/scala/exercises/series/example.scala
trackler-2.2.1.134 tracks/scala/exercises/series/example.scala
trackler-2.2.1.133 tracks/scala/exercises/series/example.scala
trackler-2.2.1.132 tracks/scala/exercises/series/example.scala
trackler-2.2.1.131 tracks/scala/exercises/series/example.scala
trackler-2.2.1.130 tracks/scala/exercises/series/example.scala
trackler-2.2.1.129 tracks/scala/exercises/series/example.scala
trackler-2.2.1.128 tracks/scala/exercises/series/example.scala
trackler-2.2.1.127 tracks/scala/exercises/series/example.scala
trackler-2.2.1.126 tracks/scala/exercises/series/example.scala
trackler-2.2.1.125 tracks/scala/exercises/series/example.scala
trackler-2.2.1.124 tracks/scala/exercises/series/example.scala
trackler-2.2.1.123 tracks/scala/exercises/series/example.scala
trackler-2.2.1.122 tracks/scala/exercises/series/example.scala
trackler-2.2.1.121 tracks/scala/exercises/series/example.scala
trackler-2.2.1.120 tracks/scala/exercises/series/example.scala