If I have a vector like
"a": 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0
I want to know how many 1
are together in a
, in this case the answer would be 3 and 2.
Is there any script that can do this?
See Question&Answers more detail:osIf I have a vector like
"a": 0 0 0 1 1 1 0 0 0 0 1 1 0 0 0
I want to know how many 1
are together in a
, in this case the answer would be 3 and 2.
Is there any script that can do this?
See Question&Answers more detail:os