[Jprogramming] segregation boxing on bitvectors

Skip Cave skip at caveconsulting.com
Thu Oct 21 17:13:27 UTC 2021


Or more generally, how do you box sequential items that are identical?

|4|5 5|3 3 3|6|8|6 6|9|2 2 2|

Skip Cave
Cave Consulting LLC


On Thu, Oct 21, 2021 at 12:01 PM Raoul Schorer <raoul.schorer at gmail.com>
wrote:

> Hi,
>
> Really trivial question I am stuck on:
>
> given a bit vector
> 0 1 0 1 1 1 0 0
>
> how to easily sequentially box 1s & 0s? Such as:
> |0|1|0|1 1 1|0 0|
>
> Thanks!
> Raoul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


More information about the Programming mailing list