infix adverb \
or a cut conjunction ;. for a general tessellation

   (1,:2)<;._3[1 2 2 4 1 5 3 4 4 2 3 3
┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
│1 2│2 2│2 4│4 1│1 5│5 3│3 4│4 4│4 2│2 3│3 3│
└───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┘


> On Oct 27, 2016, at 1:28 PM, Skip Cave <[email protected]> wrote:
> 
> What is the best way to box each sequential pair in a string of integers?
> 
>   t =. 1 2 2 4 1 5 3 4 4 2 3 3
> 
> 
> 
>  ??  t
> ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
> 
> │1 2│2 2│2 4│4 1│1 5│5 3│3 4│4 4│4 2│2 3│3 3│
> 
> └───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┘
> 
> 
> Skip Cave
> Cave Consulting LLC
> ----------------------------------------------------------------------
> 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