On Thu May 20, 2021 at 3:22 PM CEST, Hauke Rehr wrote:
> I strongly expect one could do better than to
> {.+i.@-.@-/

Maybe a little bit cleaner: (}.i.@>:)/ 2 6

(and good catch on that (<+_1*>) -> (<->), thanks!)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to