Yep, just what I was looking for.
With this approach one can select the length of the substrings of interest.

   2 4 6 <@<\ 'abcdefg'
┌────────┬────────┬──────┬──────┬────┬────┐
│┌──┐    │┌──┐    │┌──┐  │┌──┐  │┌──┐│┌──┐│
││ab│    ││bc│    ││cd│  ││de│  ││ef│││fg││
│└──┘    │└──┘    │└──┘  │└──┘  │└──┘│└──┘│
├────────┼────────┼──────┼──────┼────┼────┤
│┌────┐  │┌────┐  │┌────┐│┌────┐│    │    │
││abcd│  ││bcde│  ││cdef│││defg││    │    │
│└────┘  │└────┘  │└────┘│└────┘│    │    │
├────────┼────────┼──────┼──────┼────┼────┤
│┌──────┐│┌──────┐│      │      │    │    │
││abcdef│││bcdefg││      │      │    │    │
│└──────┘│└──────┘│      │      │    │    │
└────────┴────────┴──────┴──────┴────┴────┘
   ;2 4 6 <@<\ 'abcdefg'
┌──┬──┬──┬──┬──┬──┬────┬────┬────┬────┬──────┬──────┐
│ab│bc│cd│de│ef│fg│abcd│bcde│cdef│defg│abcdef│bcdefg│
└──┴──┴──┴──┴──┴──┴────┴────┴────┴────┴──────┴──────┘

On Thu, Oct 24, 2019 at 1:39 PM Ric Sherlock <tikk...@gmail.com> wrote:

> You could add another level of boxing and then a raze to get rid of the
> fills
> ; (>:i.5) <@(<\) 'abcde
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to