Instead of
FromDigits[{2, 1, 1}, 2]
with output 11
, I want to insert a whole list of lists instead of {2,1,1}
.
So if
lis = {{2, 1, 1}, {1, 1, 1}, {1, 0, 0}}
I want as output: {11, 7, 4}
but FromDigits[lis, 2]
does not work. How can I do it?