Will this do?
sw =: 1 : 'm ]\]' 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 On 19 February 2018 at 14:09, Skip Cave <[email protected]> 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 -- - michael dykman - [email protected] May the Source be with you. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
