Atom - - Split (Length, Overlapping)

Characters:

Tags: array , number , vectorize

Arity: dyadic

This atom is dyadic, which means it takes two arguments.

Functionality

Return overlapping slices of x of length y.

Details

Vectorizes over the right argument. If the length of x is less than y, returns the empty list. Numbers are automatically cast to a range on the left. For example, 5 ṡ 3 returns [[1, 2, 3], [2, 3, 4], [3, 4, 5]].