I have the following list
list = {
{{"-", "-"}, {"+", "-"}, {"+", "-"}},
{{"-", "-"}, {"+", "-"}, {"+", "+"}},
{{"-", "-"}, {"+", "+"}, {"-", "-"}},
{{"-", "-"}, {"+", "+"}, {"-", "+"}},
{{"-", "+"}, {"-", "-"}, {"+", "-"}},
{{"-", "+"}, {"-", "-"}, {"+", "+"}},
{{"-", "+"}, {"-", "+"}, {"-", "-"}},
{{"-", "+"}, {"-", "+"}, {"-", "+"}},
{{"+", "-"}, {"+", "-"}, {"+", "-"}},
{{"+", "-"}, {"+", "-"}, {"+", "+"}},
{{"+", "-"}, {"+", "+"}, {"-", "-"}},
{{"+", "-"}, {"+", "+"}, {"-", "+"}},
{{"+", "+"}, {"-", "-"}, {"+", "-"}},
{{"+", "+"}, {"-", "-"}, {"+", "+"}},
{{"+", "+"}, {"-", "+"}, {"-", "-"}},
{{"+", "+"}, {"-", "+"}, {"-", "+"}}
};
I wish to perform the following manipulations on this list:
Replace first and last subelement in sublist. for example: the sublist
{{"-","-"},{"+","-"},{"+","-"}}
should be replace with the sublist{{0,"-"},{"+","-"},{"+",0}}
.The new list produces duplicates if considering the symmetry which I would like to eliminate. For example: the sublists
{{0,"-"},{"+","-"},{"+",0}}
and{{0,"+"},{"-","+"},{"-",0}}
are considered as duplicates.
Can anyone advise on how to perform these list manipulations?