Sliding List Windows

data · N081 · starter-package 7.0.1

Take complete overlapping windows of Size items, advancing by Step (default 1). A short final window is omitted. The total number of item positions across the result is limited to 10,000.

Example

Connected values

{"items":[1,2,3,4],"size":2}

Result

{"result":[[1,2],[2,3],[3,4]]}

Connector data types

DirectionConnectorTypeRequired
Inputitems — Itemslistyes
Inputsize — Sizenumberyes
Inputstep — Stepnumberno
Outputresult — Resultliston success

Errors and recovery

Use a positive whole number for Size and Step. With Size 2 and Step 1, three input items generate two windows.