It's called "infix".

   3 <\ 'abcdefg'
┌───┬───┬───┬───┬───┐
│abc│bcd│cde│def│efg│
└───┴───┴───┴───┴───┘
   3 <\ 7 5 $ 'the notorious lonesome stranger'
┌─────┬─────┬─────┬─────┬─────┐
│the n│otori│ous l│oneso│me st│
│otori│ous l│oneso│me st│range│
│ous l│oneso│me st│range│rthe │
└─────┴─────┴─────┴─────┴─────┘



On Sat, Apr 7, 2018 at 8:57 AM, Skip Cave <s...@caveconsulting.com> wrote:

> How do I implement this sliding window verb 'f'? Where is this kind of
> function described in the J documentation? Search keywords?
>
> 2 f 3 5 6 3 8 5 3 7
>
> 3 5
>
> 5 6
>
> 6 3
>
> 3 8
>
> 5 3
>
> 3 7
>
>
> 3 f 3 5 6 3 8 5 3 7
>
> 3 5 6
>
> 5 6 3
>
> 6 3 8
>
> 3 8 5
>
> 8 5 3
>
> 5 3 7
>
> Skip
>
> Skip Cave
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to