I have pascal code (programming language actually doesn't mean anything):
box[1] := 14;
box[2] := 2;
box[3] := 4;
box[4] := 5;
box[5] := 6;
box[6] := 8;
I want to get all possibilities. For instance, box[1] = box[6], then box[6] = box[1]. Yes, I can write it by my hand, but I guess I can make it more clever, by loop. Any suggestions?