It is unlikely that there is a function that does exactly that. But here is one way to do it:
julia> input = [true,true,false,false,false,false,true,true,true,false,false,true];
julia> new_input = Vector{Bool}[]
neq = 1
for i in 2:length(input)
if input[i] == input[i-1]
neq += 1
else
push!(new_input,[input[i-1] for j in 1:neq])
neq = 1
end
end
julia> new_input
4-element Array{Array{Bool,1},1}:
[1, 1]
[0, 0, 0, 0]
[1, 1, 1]
[0, 0]