I am trying to make a function that takes a list and models splitting lanes in traffic. The list below is a 1-lane road with cars a, b, and c in them, moving from left to right, and I want them to fill the available lanes to the right.
{{{a,b,c}}//MatrixForm,{{0,0,0},{0,0,0}}//MatrixForm
Is there a way to define a function like that? I want something like... for one discrete timestep, have car c move into the top (left) lane.
Clear[traffic];
traffic[{{a,b,c}}]:={{{0,a,b}},{{c,0,0},{0,0,0}}} and so on.


