bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Grouping function


From: Elias Mårtenson
Subject: [Bug-apl] Grouping function
Date: Sat, 17 Jun 2017 18:17:24 +0800

I'm sure there was a function that could do this, but for the life of me can't figure out which one it was.

Assuming I have an array of values, I want to split them into groups of N numbers, which are overlapping. I.e. if the group size is 3 and the array contains the values 1 2 3 4 5 6, I want the result to be:

(1 2 3) (2 3 4) (3 4 5) (4 5 6)

How do I do this?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]