Nonoblock: Difference between revisions

Content added Content deleted
Line 920: Line 920:
push!(result, header * minsized(allbuthead))
push!(result, header * minsized(allbuthead))
else
else
for tail in sequences(allbuthead, rightspace)
map(x -> push!(result, header * x), sequences(allbuthead, rightspace))
push!(result, header * tail)
end
end
end
end
end
Line 931: Line 929:
function nonoblocks(bvec, len)
function nonoblocks(bvec, len)
println("With blocks $bvec and $len cells:")
println("With blocks $bvec and $len cells:")
if len < minlen(bvec)
len < minlen(bvec) ? println("No solution") : for seq in sequences(bvec, len) println(seq) end
println("No solution")
else
for seq in sequences(bvec, len)
println(seq)
end
end
end
end