I am trying to join entries of binary numbers at the lowest level of a nested list, e.g.
testlist = {{{100, 100}, {101, 101}}, {{110, 110}, {111, 111}}, {{111,
100}, {111, 110}}, {{101, 111}, {110, 101}}}
Using the Row function seems to work
rowlist = Table[Row[testlist[[i, j]]], {i, 4}, {j, 2}]
with the resulting output displayed as
{{100100,101101},{110110,111111},{111100,111110},{101111,110101}
which is the desired result. However when I check the first entry at the third level, i.e. rowlist[[1,1,1]]
I get {100, 100}
which suggests that this is merely a change of display rather than fundamentally changing the list, as does the output from rowlist
when pasted here
{{Row[{100, 100}], Row[{101, 101}]}, {Row[{110, 110}],
Row[{111, 111}]}, {Row[{111, 100}],
Row[{111, 110}]}, {Row[{101, 111}], Row[{110, 101}]}}
How can I change the list so that the first entry at the deepest level is rowlist[[1,1]]=100100
?
Map[{10^Floor[Log10[#[[2]]] + 1], 1} . # &, testlist, {2}]
$\endgroup$