Scoop API

scoop:scoop.std:0.1.0

windowed

function windowed

source · line 54
public
public fun <T> Iterable<T>.windowed(size: Long, step: Long = 1L, partialWindows: Boolean = false): List<List<T>>

Extension receiver: Iterable<T>

Produces copied windows at the requested step. Size and step must be positive; incomplete trailing windows are included only when partialWindows is true.