Re: [Jprogramming] Boxing pairs

2016-10-27 Thread Skip Cave
Doh! *Infix* was what I was looking for. Thanks so much, Sam. Thanks also to Xiao-Yong, who showed how the cut conjunction could be used for the same purpose as infix. I'll have to study the cut conjunction more, to understand how it works in this application. Skip Skip Cave Cave Consulting LLC

Re: [Jprogramming] Boxing pairs

2016-10-27 Thread Xiao-Yong Jin
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 wrote: > >

Re: [Jprogramming] Boxing pairs

2016-10-27 Thread Sam Simone
NB. Use the infix adverb: x u\ y NB. this applies u to every infix of x items of y t =. 1 2 2 4 1 5 3 4 4 2 3 3 2 <\ t ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐ │1 2│2 2│2 4│4 1│1 5│5 3│3 4│4 4│4 2│2 3│3 3│ └───┴───┴───┴───┴───┴───┴───┴───┴───┴───┴───┘ - Sam On Thu, Oct 27, 2016 at

[Jprogramming] Boxing pairs

2016-10-27 Thread Skip Cave
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 -