Is there a function that does something like this:
I have a Boolean array, e.g. input = [true,true,false,false,false,false,true,true,true,false,false,true]. I want to get a set of arrays for the corresponding regions of identical value, that is: output=[[true,true],[false,false,false,false],[true,true,true],[false,false],[true]].