Look into the likes of

   +/~ i. 4

0 1 2 3

1 2 3 4

2 3 4 5

3 4 5 6


Change as needed to meet your spec.


Henry Rich


On 2/19/2018 2:09 PM, Skip Cave wrote:
How can one create a sliding window in J?

3 sw i.6

0 1 2
1 2 3
2 3 4
3 4 5

4 sw i.7
0 1 2 3
1 2 3 4
2 3 4 5
3 4 5 6
4 5 6 7

What is the J code for sw?





Skip Cave
Cave Consulting LLC
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm



---
This email has been checked for viruses by AVG.
http://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to