Is there is a performat way to convert something like
{{0,0},a},{{0,1},c},{{1,0},d},{{1,1},e}
into
{{a,b},{c,d}}
The indices are not always orderes and the only solution I can think of is searching for the maximum indices, create a matrix filled with 0 and use map afterwards to modify the matrix. Is there is a better way?
Thank you, Martin
{{0,0},a},{{0,1},c},{{1,0},d},{{1,1},e}
you actually mean{{{0, 0}, a}, {{0, 1}, b}, {{1, 0}, c}, {{1, 1}, d}}
, Please check that the input is correct. $\endgroup$ – rhermans Jul 17 '19 at 14:14